mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
19 lines
176 B
Go
19 lines
176 B
Go
package main
|
|
|
|
type I1 interface {
|
|
Truc()
|
|
}
|
|
|
|
type T1 struct{}
|
|
|
|
func (T1) Truc() { println("in T1 truc") }
|
|
|
|
var x I1 = T1{}
|
|
|
|
func main() {
|
|
x.Truc()
|
|
}
|
|
|
|
// Output:
|
|
// in T1 truc
|