aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/typedef_scope_runme.go
blob: af282b16f0e6fcc88ccf6353cca49bb3f073cfe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import "typedef_scope"

func main() {
	b := typedef_scope.NewBar()
	x := b.Test1(42, "hello")
	if x != 42 {
		panic("Failed!!")
	}

	xb := b.Test2(42, "hello")
	if xb != "hello" {
		panic("Failed!!")
	}
}