-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error: undefined constant U #11244
Comments
There is no obvious error with that def. I have no idea how Stdlib specs are passing. crystal/spec/std/array_spec.cr Lines 689 to 698 in 685da9d
We need some code to reproduce the error. |
I will try to extract the code to reproduce this issue. |
The original error seems to come from here: https://github.com/mamantoha/clear/runs/3681933489 Reduced: alias Foo = Int32 | Array(Foo)
alias Bar = String | Array(Bar)
x = 1.as(Foo | Bar)
x == x # Error: undefined constant U For now I suggest not replacing parameter restrictions like |
The magic constant U has been discovered! |
Looks like this is also showing up for https://github.com/caspiano/crystal-redis/runs/3864309457?check_suite_focus=true#step:10:12 |
Hi team.
I didn't get how to reproduce this error.
But after #10467 my code start fail.
This is the end to the outputt.
Looks like a typo.
Let me know if I need to provide more info.
/cc @straight-shoota
The text was updated successfully, but these errors were encountered: