Closed kmsquire closed 5 years ago
Very related: #2586 #6195 #5352
There are all kinds of issues with putting top-level expressions in strange places.
Thanks, Jeff. I am looking forward to #6195 or some variation thereof. Cheers!
I get this error when trying to do conditionally import Base.Markdown in Markdown.jl:
module Markdown
if VERSION > v"0.4-"
for f in names(Base.Markdown, true, false)
eval(Expr(:export, f))
end
else
# rest of code
Which doesn't quite work without the conditional anyways!
Addressed by using Requires
. See https://github.com/JuliaLang/julia/issues/2025#issuecomment-338005473 and below for discussion.
I receive the error in the subject when I attempt to conditionally compile the source code below.
However, if I remove
;flip=false
from the definition ofplay
, everything compiles and works fine, including theexport
line.This seems inconsistent to me, although I'd be happy with an explanation and/or a workaround.
For reference, this is from here.
I'm on a version of master compiled today: