t22008.nim 130 B

12345678
  1. template detect(v: untyped) =
  2. doAssert typeof(v) is int
  3. detect:
  4. try:
  5. raise (ref ValueError)()
  6. except ValueError:
  7. 42