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

AssertionError: isa(linfo.code,Array{Any,1}) #20902

Closed
SimonDanisch opened this issue Mar 5, 2017 · 0 comments
Closed

AssertionError: isa(linfo.code,Array{Any,1}) #20902

SimonDanisch opened this issue Mar 5, 2017 · 0 comments

Comments

@SimonDanisch
Copy link
Contributor

When calling unoptimized code_typed on a generated function this happens:

@generated function test()
    quote
        10 + 11
    end
end
code_typed(test, (), optimize = false)
code_typed(test, (), optimize = false)

ERROR: AssertionError: isa(linfo.code,Array{Any,1})
 in Core.Inference.InferenceState(::LambdaInfo, ::Bool, ::Bool, ::Bool) at ./inference.jl:81
 in typeinf_edge(::Method, ::Any, ::SimpleVector, ::Bool, ::Bool, ::Bool, ::Void) at ./inference.jl:1572
 in (::Core.Inference.#kw##typeinf_uncached)(::Array{Any,1}, ::Core.Inference.#typeinf_uncached, ::Method, ::Any, ::Any) at ./<missing>:0
 in #code_typed#18(::Bool, ::Function, ::Any, ::Any) at ./reflection.jl:410
 in (::Base.#kw##code_typed)(::Array{Any,1}, ::Base.#code_typed, ::Any, ::Any) at ./<missing>:0

This seems fixed on 0.6, but because of #20103 I can't get things to work there either ;)

Would be nice if we can find a fix for either one (preferably fix 0.6 :P )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant