Closed acidtib closed 5 years ago
I'm having the same issue.
I tried a quick fix based on the HeaderKey
class, which implements the abstract method, by adding it to the Header
class:
# src/awscr-signer/core/header.cr
def <=>(other)
1
end
However, the output is a compiler error:
cast from Nil to Crystal::GenericInstanceType+ failed, at /private/tmp/crystal-20190805-7397-smhku/crystal-0.30.0/src/compiler/crystal/semantic/abstract_def_checker.cr:215:5:215 (TypeCastError)
from Crystal::AbstractDefChecker#find_base_generic_instantiation<Crystal::Type+, (Crystal::GenericClassType+ | Crystal::GenericModuleType)>:Crystal::GenericInstanceType+
from Crystal::AbstractDefChecker#implements?<Crystal::Type+, Crystal::Def+, Crystal::NamedType+>:Bool
from Crystal::AbstractDefChecker#check_implemented_in_subtypes<Crystal::NamedType+, Crystal::NamedType+, Crystal::Def+>:Nil
from Crystal::AbstractDefChecker#check_single<Crystal::NamedType+>:Nil
from Crystal::Program#top_level_semantic<Crystal::ASTNode+>:Tuple(Crystal::ASTNode+, Crystal::TypeDeclarationProcessor)
from Crystal::Program#semantic<Crystal::ASTNode+, Bool>:Crystal::ASTNode+
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
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
@snadon yup I'm having same results, hopefully, @taylorfinnell has a better clue
Im looking over https://github.com/crystal-lang/crystal/blob/master/src/compiler/crystal/semantic/abstract_def_checker.cr for more clues
Should be fixed in #43, I'll do a release later tonight
had time to test #43 and it's all good in my end, thanks @taylorfinnell
Closed by #43