mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
19 lines
138 B
Go
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
|