summaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/using_private_runme.go
blob: d683ef8566d81128893dbe6ab0ae2638d3e6d4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

import . "./using_private"

func main() {
	f := NewFooBar()
	f.SetX(3)

	if f.Blah(4) != 4 {
		panic("blah(int)")
	}

	if f.Defaulted() != -1 {
		panic("defaulted()")
	}

	if f.Defaulted(222) != 222 {
		panic("defaulted(222)")
	}
}