[Go] Fix overloaded functions with noncapitalized class as parameter type

Fixes #676 #677
This commit is contained in:
Shengqiu Li 2016-05-15 18:56:56 +08:00 committed by Olly Betts
commit d3383e254d

View file

@ -5226,10 +5226,14 @@ private:
}
}
if (Getattr(undefined_types, ty) && !Getattr(defined_types, ty)) {
String* go_type = goType(n, ty);
if (Getattr(undefined_types, ty) && !Getattr(defined_types, go_type)) {
Delete(go_type);
return goWrapperType(n, type, true);
}
Delete(go_type);
return goType(n, type);
}