PageRenderTime 15ms CodeModel.GetById 7ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
Go | 16 lines | 13 code | 3 blank | 0 comment | 4 complexity | 580bd74812af836c0b5f690eaf3aa6e5 MD5 | raw file
 1package main
 2
 3import "./typedef_scope"
 4
 5func main() {
 6	b := typedef_scope.NewBar()
 7	x := b.Test1(42, "hello")
 8	if x != 42 {
 9		panic("Failed!!")
10	}
11
12	xb := b.Test2(42, "hello")
13	if xb != "hello" {
14		panic("Failed!!")
15	}
16}