@cosnicolaou this code in bind/gen_struct.go is somehow not working as expected:
// See comment in genStructInit about ensuring that gopy managed
// objects are only assigned to from gopy managed objects.
switch f.Type().(type) {
case *types.Basic:
g.pywrap.Printf("_%s.%s(self.handle, value)\n", pkgname, cgoFn)
default:
g.pywrap.Printf("raise TypeError(\"supplied argument type {t} is not a go.GoClass\".format(t=type(value)))\n")
}
for types that are based on Basic types, e.g., type Dim int or type FileName string, this switch is going into the default: case.
I will figure out why and add a PR for this and the --no-warn flag.
@cosnicolaou this code in
bind/gen_struct.go
is somehow not working as expected:for types that are based on Basic types, e.g.,
type Dim int
ortype FileName string
, this switch is going into the default: case.I will figure out why and add a PR for this and the --no-warn flag.