mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
14 lines
131 B
Go
14 lines
131 B
Go
package main
|
|
|
|
func f() interface{} {
|
|
return make([]int, 2)
|
|
}
|
|
|
|
func main() {
|
|
a := f()
|
|
println(len(a.([]int)))
|
|
}
|
|
|
|
// Output:
|
|
// 2
|