don't use {.rtl.} for generics, otherwise -d:useNimRtl gives ambiguous identifier nimrtl error (#18406)

This commit is contained in:
Timothee Cour 2021-07-01 02:14:01 -07:00 • committed by GitHub
commit 779b4e307b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 10 deletions

View file

@ -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: