blob: 7a65569f22bbd762f6bc60acbdc8c995f91c2d85 [file] [log] [blame]
package main
import "typedef_inherit"
func main() {
a := typedef_inherit.NewFoo()
b := typedef_inherit.NewBar()
x := typedef_inherit.Do_blah(a)
if x != "Foo::blah" {
panic(x)
}
x = typedef_inherit.Do_blah(b)
if x != "Bar::blah" {
panic(x)
}
c := typedef_inherit.NewSpam()
d := typedef_inherit.NewGrok()
x = typedef_inherit.Do_blah2(c)
if x != "Spam::blah" {
panic(x)
}
x = typedef_inherit.Do_blah2(d)
if x != "Grok::blah" {
panic(x)
}
}