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

# · Go · 14 lines · 11 code · 3 blank · 0 comment · 4 complexity · 49b636c6bb4226f9b589a8ed46e63db9 MD5 · raw file

  1. package main
  2. import "./extend_template"
  3. func main() {
  4. f := extend_template.NewFoo_0()
  5. if f.Test1(37) != 37 {
  6. panic(0)
  7. }
  8. if f.Test2(42) != 42 {
  9. panic(0)
  10. }
  11. }