From e94a3e5fcd4f36f090520a859e587c6019ba296b Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sat, 20 Feb 2021 09:08:13 -0800 Subject: move prelude so that `include std/prelude` also works (#17110) * move prelude so that `include std/prelude` also works * add test --- tests/stdlib/tprelude.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/stdlib/tprelude.nim (limited to 'tests') diff --git a/tests/stdlib/tprelude.nim b/tests/stdlib/tprelude.nim new file mode 100644 index 000000000..a60bcf70a --- /dev/null +++ b/tests/stdlib/tprelude.nim @@ -0,0 +1,14 @@ +discard """ + targets: "c js" + matrix: "; -d:nimTestTpreludeCase1" +""" + +when defined nimTestTpreludeCase1: + include std/prelude +else: + include prelude + +template main() = + doAssert toSeq(1..3) == @[1,2,3] +static: main() +main() -- cgit 1.4.1-2-gfad0