1
0
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:
Alexander Medvednikov
2020-04-25 09:18:10 +02:00
parent 9229a963ed
commit d54b48b300
3 changed files with 2 additions and 13 deletions

View File

@@ -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