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
classObjectdefto_foo(io); enddefto_fooString.build &->to_foo(IO)
endendTime.local.to_foo # for structs works fine apparently:foobar.to_foo # ... but it crashes having simple `Value`s as implicit `self`
generates following ICE:
Module validation failed: Invalid bitcast
%6 = bitcast i32 %self to i8*
(Exception)
from Crystal::CodeGenVisitor#finish:Nil
from Crystal::Compiler#codegen<Crystal::Program, Crystal::ASTNode+, Array(Crystal::Compiler::Source), String>:(Tuple(Array(Crystal::Compiler::CompilationUnit), Array(String)) | Nil)
from Crystal::Compiler#compile<Array(Crystal::Compiler::Source), String>:Crystal::Compiler::Result
from Crystal::Command#run_command<Bool>:Nil
from Crystal::Command#run:(Bool | Crystal::Compiler::Result | Nil)
from main
Code below:
generates following ICE:
See https://carc.in/#/r/7le1
The text was updated successfully, but these errors were encountered: