github.com/switchupcb/yaegi@v0.10.2/_test/alias4.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "net/http" 6 ) 7 8 type A http.Header 9 10 func (a A) Test1() { 11 fmt.Println("test1") 12 } 13 14 type B A 15 16 func (b B) Test2() { 17 fmt.Println("test2") 18 } 19 20 func main() { 21 b := B{} 22 23 b.Test2() 24 } 25 26 // Output: 27 // test2