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

import wrap "inherit_member"

func main() {
	s := wrap.NewChild()
	s.SetPvar("p")
	s.SetCvar("c")
	if s.GetPvar() != "p" {
		panic(s.GetPvar())
	}
	if s.GetCvar() != "c" {
		panic(s.GetCvar())
	}
}