You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package bug
type Struct struct {
Field map[string][]Obj
}
type Obj string
running ffjson results in a go file that can't be compiled:
handle_Field:
/* handler: j.Field type=map[string][]bug.Obj kind=map quoted=false*/
{
{
if tok != fflib.FFTok_left_bracket && tok != fflib.FFTok_null {
return fs.WrapErr(fmt.Errorf("cannot unmarshal %s into Go value for ", tok))
}
}
if tok == fflib.FFTok_null {
j.Field = nil
} else {
j.Field = make(map[string][]bug.Obj, 0)
wantVal := true
for {
var k string
...
Notice the bug.Obj which should be just Obj.
Thanks
The text was updated successfully, but these errors were encountered:
posener
changed the title
Icorrect generation of type in a slice in a map in a struct
Incorrect generation of type in a slice in a map in a struct
Mar 3, 2018
For the following go file:
running ffjson results in a go file that can't be compiled:
Notice the
bug.Obj
which should be justObj
.Thanks
The text was updated successfully, but these errors were encountered: