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
Compiler assertion error: Crystal::Call#scope cannot be nil (NilAssertionError) #9749
Comments
Reduced: a do
{% verbatim do %}
b
{% end %}
end |
I accidentally created a duplicate issue of this, but I think my bug report could be useful for further investigation, so I'll paste it here. Bug reportThe following code raises a compile-time error (even with def foo
end
{% verbatim do %}
foo
{% end %} This is the exception:
This only happens when there is no callee ( def foo
end
{% if true %}
{% verbatim do %}
foo
{% end %}
{% end %} In general, using {% puts 1 %}
{% verbatim do %}
{% puts 2 %}
{% end %}
{% puts 3 %} ..prints the numbers "1 2 3 2 2 2" (in this order). When running the above code with
We can see that everything is executed normally once inside the Of course, using $ crystal -v
Crystal 1.9.2 [1908c816f] (2023-07-19)
LLVM: 15.0.7
Default target: x86_64-unknown-linux-gnu |
This little ditty sets off Compiler assertion error: Crystal::Call#scope cannot be nil (NilAssertionError)
Compiler version:
The text was updated successfully, but these errors were encountered: