mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
18 lines
186 B
Go
18 lines
186 B
Go
package main
|
|
|
|
type original struct {
|
|
Field string
|
|
}
|
|
|
|
func main() {
|
|
type alias original
|
|
type alias2 alias
|
|
var a = &alias2{
|
|
Field: "test",
|
|
}
|
|
println(a.Field)
|
|
}
|
|
|
|
// Output:
|
|
// test
|