aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/typedef_scope_runme.go
blob: 1c4314427ade4f7109eaca7a3d3825241f28ba21 (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!!")
	}
}