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

Modules with docstrings don't like interpolation #27832

Closed
Keno opened this issue Jun 27, 2018 · 2 comments
Closed

Modules with docstrings don't like interpolation #27832

Keno opened this issue Jun 27, 2018 · 2 comments
Assignees
Labels
docsystem The documentation building system

Comments

@Keno
Copy link
Member

Keno commented Jun 27, 2018

"""
"""
module Foo

macro foo(x)
    Core.println(x)
end

for fn in (:isdone,)
    @foo $fn
end

end
ERROR: UndefVarError: fn not defined
Stacktrace:
 [1] top-level scope at none:0
@JeffBezanson
Copy link
Sponsor Member

That example by itself seems to work; we think there's more to the story.

@Keno
Copy link
Member Author

Keno commented Jun 27, 2018

Looks like it only fails if you previously tried to

baremodule NotBase; Core.include(NotBase, "sysimg.jl"); end

at some point.

@JeffBezanson JeffBezanson added the docsystem The documentation building system label Jun 28, 2018
@Keno Keno closed this as completed in ba31a93 Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docsystem The documentation building system
Projects
None yet
Development

No branches or pull requests

2 participants