mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
table: interface cast fix
This commit is contained in:
@@ -485,7 +485,7 @@ pub fn (t &Table) check(got, expected Type) bool {
|
||||
exp_type_sym := t.get_type_symbol(expected)
|
||||
//
|
||||
if exp_type_sym.kind == .interface_ {
|
||||
info := got_type_sym.info as Interface
|
||||
info := exp_type_sym.info as Interface
|
||||
println('gen_types before')
|
||||
println(info.gen_types)
|
||||
info.gen_types << got_type_sym.name
|
||||
|
||||
Reference in New Issue
Block a user