don't use {.rtl.} for generics, otherwise -d:useNimRtl gives ambiguous identifier nimrtl error (#18406)
This commit is contained in:
parent
41c29cb3a1
commit
779b4e307b
3 changed files with 13 additions and 10 deletions
|
|
@ -1760,7 +1760,7 @@ func join*(a: openArray[string], sep: string = ""): string {.rtl,
|
|||
else:
|
||||
result = ""
|
||||
|
||||
func join*[T: not string](a: openArray[T], sep: string = ""): string {.rtl.} =
|
||||
func join*[T: not string](a: openArray[T], sep: string = ""): string =
|
||||
## Converts all elements in the container `a` to strings using `$`,
|
||||
## and concatenates them with `sep`.
|
||||
runnableExamples:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue