Files
moxa/_test/struct7.go
2018-10-31 19:35:26 +01:00

19 lines
152 B
Go

package main
type Opt struct {
b bool
}
type T struct {
i int
opt Opt
}
func main() {
a := T{}
println(a.i, a.opt.b)
}
// Output:
// 0 false