PageRenderTime 43ms CodeModel.GetById 21ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. package main
  2. import "./typedef_scope"
  3. func main() {
  4. b := typedef_scope.NewBar()
  5. x := b.Test1(42, "hello")
  6. if x != 42 {
  7. panic("Failed!!")
  8. }
  9. xb := b.Test2(42, "hello")
  10. if xb != "hello" {
  11. panic("Failed!!")
  12. }
  13. }