mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
19 lines
153 B
Go
19 lines
153 B
Go
package main
|
|
|
|
type T1 T
|
|
|
|
func foo() T1 {
|
|
return T1(T{"foo"})
|
|
}
|
|
|
|
type T struct {
|
|
Name string
|
|
}
|
|
|
|
func main() {
|
|
println(foo().Name)
|
|
}
|
|
|
|
// Output:
|
|
// foo
|