ttypeconverter1.nim 187 B

12345678910111213141516
  1. discard """
  2. output: '''foo
  3. true'''
  4. """
  5. converter p(i: int): bool = return i != 0
  6. if 1:
  7. echo if 4: "foo" else: "barr"
  8. while 0:
  9. echo "bar"
  10. var a: array[3, bool]
  11. a[0] = 3
  12. echo a[0]