PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Go | 12 lines | 9 code | 3 blank | 0 comment | 2 complexity | 18f7dae9aba611608485412d051a69ae MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. package main
  2. import . "./using_protected"
  3. func main() {
  4. f := NewFooBar()
  5. f.SetX(3)
  6. if f.Blah(4) != 4 {
  7. panic("blah(int)")
  8. }
  9. }