Files
moxa/_test/struct45.go
2020-05-03 18:32:04 +02:00

19 lines
138 B
Go

package main
type T struct {
b bool
}
type T1 struct {
T
}
func main() {
t := &T1{}
t.b = true
println(t.b)
}
// Output:
// true