Merge pull request #235 from dontpanic92/master

Go: fix overload functions with polymorphic
This commit is contained in:
ianlancetaylor 2014-11-17 08:28:07 -08:00
commit da7133aa8e
4 changed files with 35 additions and 1 deletions

View file

@ -4414,7 +4414,7 @@ private:
}
fn = i + 1;
Printf(f_go_wrappers, "\t\tif _, ok := a[%d].(%s); !ok {\n", j, tm);
Printf(f_go_wrappers, "\t\tif _, ok := a[%d].(%s); !ok {\n", j, goType(pj, Getattr(pj, "type")));
Printf(f_go_wrappers, "\t\t\tgoto check_%d\n", fn);
Printv(f_go_wrappers, "\t\t}\n", NULL);
}