mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
Add getConcreteType to retrieve the concrete type of a nested interface value implementing a specific interface for which a wrapper exists. If method resolution fails at runtime, a panic is now issued instead of an error message and continue. Fixes #1187.
12 lines
116 B
Go
12 lines
116 B
Go
package main
|
|
|
|
import "net"
|
|
|
|
func main() {
|
|
c := append(net.Buffers{}, []byte{})
|
|
println(len(c))
|
|
}
|
|
|
|
// Output:
|
|
// 1
|