tprelude.nim 230 B

123456789101112131415
  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. template main() =
  10. doAssert toSeq(1..3) == @[1,2,3]
  11. static: main()
  12. main()