PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/go/dynamic_cast_runme.go

#
Go | 16 lines | 12 code | 4 blank | 0 comment | 2 complexity | ffb7eb4c8f40aa51a7ab20c578278f11 MD5 | raw file
 1package main
 2
 3import "./dynamic_cast"
 4
 5func main() {
 6	f := dynamic_cast.NewFoo()
 7	b := dynamic_cast.NewBar()
 8
 9	_ = f.Blah()
10	y := b.Blah()
11
12	a := dynamic_cast.Do_test(dynamic_cast.FooToBar(y))
13	if a != "Bar::test" {
14		panic("Failed!!")
15	}
16}