tprelude.nim 253 B

1234567891011121314151617
  1. discard """
  2. targets: "c js"
  3. matrix: "; -d:nimTestTpreludeCase1"
  4. """
  5. when defined nimTestTpreludeCase1:
  6. include std/prelude
  7. else:
  8. include prelude
  9. import std/assertions
  10. template main() =
  11. doAssert toSeq(1..3) == @[1,2,3]
  12. static: main()
  13. main()