fix: correct implicit struct field name for pointer (#158)

This commit is contained in:
Marc Vertes
2019-04-17 11:05:14 +02:00
committed by Ludovic Fernandez
parent 9b1a0c006c
commit e63a9ae1de
5 changed files with 75 additions and 17 deletions

15
_test/struct12.go Normal file
View File

@@ -0,0 +1,15 @@
package main
import "fmt"
type S1 struct {
Name string
}
type S2 struct {
*S1
}
func main() {
fmt.Println(S2{})
}