navigator.lua/tests/fixtures/interface_test.go
2021-08-24 17:14:43 +10:00

13 lines
174 B
Go

package main
import "fmt"
func interfaceTest() {
r := rect{width: 3, height: 4}
c := circle{radius: 5}
measure(r)
measure(c)
d := circle{radius: 10}
fmt.Println(d)
}