PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Go | 13 lines | 10 code | 3 blank | 0 comment | 2 complexity | 2458a38f88f5a24f3f231684124fba9f MD5 | raw file
 1package main
 2
 3import . "./fvirtual"
 4
 5func main() {
 6	sw := NewNodeSwitch()
 7	n := NewNode()
 8	i := sw.AddChild(n)
 9
10	if i != 2 {
11		panic("addChild")
12	}
13}