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
Using compiled compiler at `.build/crystal'
Invalid UInt32: -2147483648 (ArgumentError)
from crystal/src/string.cr:0:60 in 'to_u32'
from crystal/src/compiler/crystal/codegen/codegen.cr:432:17 in 'visit'
from crystal/src/compiler/crystal/syntax/visitor.cr:27:12 in 'accept'
from crystal/src/compiler/crystal/codegen/codegen.cr:2062:7 in 'accept'
from crystal/src/compiler/crystal/codegen/const.cr:73:7 in 'initialize_simple_const'
from crystal/src/compiler/crystal/codegen/codegen.cr:255:11 in 'initialize_simple_class_vars_and_constants'
from crystal/src/compiler/crystal/codegen/codegen.cr:229:10 in 'initialize'
from crystal/src/compiler/crystal/codegen/codegen.cr:145:5 in 'new:single_module:debug'
from crystal/src/compiler/crystal/codegen/codegen.cr:63:7 in 'codegen'
from crystal/src/compiler/crystal/codegen/codegen.cr:62:5 in 'codegen:debug:single_module'
from crystal/src/compiler/crystal/compiler.cr:22:7 in 'codegen'
from crystal/src/compiler/crystal/compiler.cr:153:16 in 'compile'
from crystal/src/compiler/crystal/command.cr:258:7 in 'compile'
from crystal/src/compiler/crystal/command.cr:177:14 in 'run_command'
from crystal/src/compiler/crystal/command.cr:99:7 in 'run'
from crystal/src/compiler/crystal/command.cr:46:5 in 'run'
from crystal/src/compiler/crystal/command.cr:45:3 in 'run'
from crystal/src/compiler/crystal.cr:8:1 in '__crystal_main'
from crystal/src/crystal/main.cr:97:5 in 'main_user_code'
from crystal/src/crystal/main.cr:86:7 in 'main'
from crystal/src/crystal/main.cr:106:3 in 'main'
from __libc_start_main
from ../sysdeps/x86_64/start.S:122:0 in '_start'
from ???
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
It works fine if give the type explicitly, or, without parentheses:
For the following Crystal source code, the compiler will raise an exception:
and backtrace is here:
It works fine if give the type explicitly, or, without parentheses:
The output of
crystal version
is here:The text was updated successfully, but these errors were encountered: