t19277.nim 290 B

1234567891011121314151617181920
  1. discard """
  2. output: '''
  3. got: 0
  4. '''
  5. """
  6. # issue #19277
  7. import m19277_1, m19277_2
  8. template injector(val: untyped): untyped =
  9. template subtemplate: untyped = val
  10. subtemplate()
  11. template methodCall(val: untyped): untyped = val
  12. {.push raises: [Defect].}
  13. foo(injector(0).methodCall())