Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using an explicitly qualified imported template as a pragma does not work #12696

Open
deech opened this issue Nov 21, 2019 · 0 comments
Open

Comments

@deech
Copy link
Contributor

deech commented Nov 21, 2019

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

@deech 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants