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

import . "./naturalvar"

func main() {
	f := NewFoo()
	b := NewBar()

	b.SetF(f)

	SetS("hello")
	b.SetS("hello")

	if b.GetS() != GetS() {
		panic(0)
	}
}