New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: typeof(item) has no type #5805
Labels
Comments
Simplified version: foo = 42
if foo.is_a?(String)
[] of typeof(foo) | Int32
end |
makenowjust
added a commit
to makenowjust/crystal
that referenced
this issue
Mar 11, 2018
…sion Fixed crystal-lang#5805 The reason of crystal-lang#5805 is missing to check untyped in union types. And `ProcNotation` has the same problem. It is fixed also.
makenowjust
added a commit
to makenowjust/crystal
that referenced
this issue
Mar 12, 2018
…sion Fixed crystal-lang#5805 The reason of crystal-lang#5805 is missing to check untyped in union types. And `ProcNotation` has the same problem. It is fixed also.
|
Actually this and #7441 are also different :-P |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try to write
unwrap
method but get errorhttps://play.crystal-lang.org/#/r/3p6i
The text was updated successfully, but these errors were encountered: