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
Crystal 0.20.1+39 [a8fbc2d] (2016-12-14) and Crystal 0.20.1 [18e7617] (2016-12-05) ( Same error but without the backtrace ) Compiled with LLVM version 3.8.0 OS: Linux
Module validation failed: Bitcast requires both operands to be pointer or neither
%5 = bitcast %"(Bool | Int32)" %arg to %"(Bool | Int32 | NamedTuple(iter: Int32, format: Bool) | String)"*, !dbg !42
Bitcast requires both operands to be pointer or neither
%3 = bitcast %"(Bool | Int32)" %arg to %"(Bool | Int32 | NamedTuple(iter: Int32, format: Bool))"*, !dbg !42
Bitcast requires both operands to be pointer or neither
%3 = bitcast %"(Bool | Int32)" %arg to %"(Bool | Int32 | NamedTuple(iter: Int32, format: Bool))"*, !dbg !42
0x53beae: ??? at ??
0x11da247: ??? at ??
0x1130f9d: ??? at ??
0x593016: ??? at ??
0x56023b: main at ??
0x7fc048b32401: __libc_start_main at ??
0x53b7e1: ??? at ??
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/issu
es
I'll take a look at this soon, but I see this often enough so I'll say it: don't use **options and then options[:throw] and such. This makes your code very hard to read, write and follow. You should use named arguments. So:
defmethod(throw =:throw, force_locale = config.locale.to_s)
# Nothing to do here :-)end# Instead of the much more verbosedefmethod(**options)
throw= options[:throw]? ||:throw
locale = options[:force_locale]? || config.locale.to_s
end
Crystal 0.20.1+39 [a8fbc2d] (2016-12-14) and Crystal 0.20.1 [18e7617] (2016-12-05) ( Same error but without the backtrace )
Compiled with LLVM version 3.8.0
OS: Linux
My code : https://github.com/TechMagister/i18n.cr
It happens when running spec :
crystal spec
With Crystal 0.20.1 [18e7617] (2016-12-05)
With Crystal 0.20.1+39 [a8fbc2d] (2016-12-14)
The text was updated successfully, but these errors were encountered: