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

# · Go · 12 lines · 9 code · 3 blank · 0 comment · 2 complexity · 18f7dae9aba611608485412d051a69ae MD5 · raw file

  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. }