PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Go | 26 lines | 19 code | 7 blank | 0 comment | 8 complexity | bfc9791c7d459395cfe9c2a74aacf946 MD5 | raw file
 1package main
 2
 3import "./default_args"
 4
 5func main() {
 6	if default_args.StaticsStaticmethod() != 60 {
 7		panic(0)
 8	}
 9
10	if default_args.Cfunc1(1) != 2 {
11		panic(0)
12	}
13
14	if default_args.Cfunc2(1) != 3 {
15		panic(0)
16	}
17
18	if default_args.Cfunc3(1) != 4 {
19		panic(0)
20	}
21
22	f := default_args.NewFoo()
23
24	f.Newname()
25	f.Newname(1)
26}