diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-07-01 02:14:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 11:14:01 +0200 |
commit | 779b4e307bdeb018bb2884920144a8c0d1f3b377 (patch) | |
tree | 62e8053c94cebd280e9ba05c81dfc5c71c5c7c2a /tests | |
parent | 41c29cb3a1674a8b85844888e831b79050d91293 (diff) | |
download | Nim-779b4e307bdeb018bb2884920144a8c0d1f3b377.tar.gz |
don't use `{.rtl.}` for generics, otherwise `-d:useNimRtl` gives `ambiguous identifier` nimrtl error (#18406)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dll/client.nim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/dll/client.nim b/tests/dll/client.nim index 150af3a17..62697569f 100644 --- a/tests/dll/client.nim +++ b/tests/dll/client.nim @@ -1,5 +1,4 @@ discard """ - output: "Done" cmd: "nim $target --debuginfo --hints:on --define:useNimRtl $options $file" """ @@ -37,5 +36,8 @@ proc eval(n: PNode): int = for i in 0..100_000: discard eval(buildTree(2)) -echo "Done" - +# bug https://forum.nim-lang.org/t/8176; Error: ambiguous identifier: 'nimrtl' +import std/strutils +doAssert join(@[1, 2]) == "12" +doAssert join(@[1.5, 2.5]) == "1.52.5" +doAssert join(@["a", "bc"]) == "abc" |