PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/go/naturalvar_runme.go

#
Go | 17 lines | 12 code | 5 blank | 0 comment | 2 complexity | 3483f39d3ccc7b9a874971e77555cfd5 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. package main
  2. import . "./naturalvar"
  3. func main() {
  4. f := NewFoo()
  5. b := NewBar()
  6. b.SetF(f)
  7. SetS("hello")
  8. b.SetS("hello")
  9. if b.GetS() != GetS() {
  10. panic(0)
  11. }
  12. }