mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-17 02:32:11 +00:00
don't use {.rtl.} for generics, otherwise -d:useNimRtl gives ambiguous identifier nimrtl error (#18406)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user