Nim
Nim copied to clipboard
Using an explicitly qualified imported template as a pragma does not work
I can't use a template exported by module as a pragma in another:
Example
module a:
template t*(x:untyped): untyped =
echo "template t"
module b:
import a
proc p() {. a.t .} = # errors with identifier expected but a.t found
echo "proc p"
Expected Output
template t
proc p
$ nim -v
Nim Compiler Version 1.1.1 [Linux: amd64]
Compiled at 2019-11-20
Copyright (c) 2006-2019 by Andreas Rumpf
git hash: 78e02d174d0269ac9c0c6f7568405471883a78fa
active boot switches: -d:release