You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't use a template exported by module as a pragma in another:
Example
module a:
templatet*(x:untyped): untyped=echo"template t"module b:
import a
procp() {. a.t .} =# errors with identifier expected but a.t foundecho"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
The text was updated successfully, but these errors were encountered:
deech
changed the title
Using an imported template as a pragma does not work
Using an explicitly qualified imported template as a pragma does not work
Nov 21, 2019
I can't use a template exported by module as a pragma in another:
Example
Expected Output
The text was updated successfully, but these errors were encountered: