github.com/goplus/gop@v1.2.6/x/build/_testdata/multi/multi.expect (about) 1 package main 2 3 import "fmt" 4 5 type BaseClass struct { 6 x int 7 y int 8 } 9 type AggClass struct { 10 } 11 type Rect struct { 12 BaseClass 13 Width float64 14 Height float64 15 *AggClass 16 } 17 18 func (this *Rect) Area() float64 { 19 return this.Width * this.Height 20 } 21 func main() { 22 rc := &Rect{Width: 100, Height: 200} 23 fmt.Println(rc) 24 }