fix: correct implicit struct field name for pointer (#158)
This commit is contained in:
committed by
Ludovic Fernandez
parent
9b1a0c006c
commit
e63a9ae1de
15
_test/struct12.go
Normal file
15
_test/struct12.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
type S1 struct {
|
||||
Name string
|
||||
}
|
||||
|
||||
type S2 struct {
|
||||
*S1
|
||||
}
|
||||
|
||||
func main() {
|
||||
fmt.Println(S2{})
|
||||
}
|
||||
Reference in New Issue
Block a user