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

# · Go · 16 lines · 13 code · 3 blank · 0 comment · 4 complexity · 580bd74812af836c0b5f690eaf3aa6e5 MD5 · raw file

  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. }