Handle pointers in slices

This commit is contained in:
Thomas Pelletier
2021-03-23 09:15:48 -04:00
parent e78ccff9a4
commit c6f117c45d
3 changed files with 31 additions and 2 deletions
+16
View File
@@ -572,6 +572,22 @@ B = "data"`,
}
},
},
{
desc: "slice pointer in slice pointer",
input: `A = ["Hello"]`,
gen: func() test {
type doc struct {
A *[]*string
}
hello := "Hello"
return test{
target: &doc{},
expected: &doc{
A: &[]*string{&hello},
},
}
},
},
}
for _, e := range examples {