You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG: `!(::raise("can't execute `().size` at /home/user/compiler-bug.cr:4:14: `` has no type"))` at /home/user/compiler-bug.cr:4:12 has no type (Exception) from /crystal/src/compiler/crystal/codegen/cond.cr:4 in 'codegen_cond' from /crystal/src/compiler/crystal/codegen/codegen.cr:909:7 in 'visit' from /crystal/src/compiler/crystal/syntax/visitor.cr:27:12 in 'accept'[...] from /crystal/src/crystal/main.cr:129:5 in 'main' from src/env/__libc_start_main.c:95:2 in 'libc_start_main_stage2'Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues
This looks completely unrelated to recursive aliases.
I have managed to reduce the reproduction a bit further. The conditional with empty then branch is very conspicuous. The condition needs to include negation.
Changing the condition to !mysize results in a slightly different error: BUG: `` at has no type. So it seems the cause of the problem lies with the implementations of Base(T)#mysize.
This is probably in relation to #13702 and #5155 , but without use of
alias
.Leads to...
I'm running
on Ubuntu 18.04
The text was updated successfully, but these errors were encountered: