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
I'm not sure if this is a bug or would be a nice feature. It could also be duplicate with #2962.
classSomeClass@a : Int32? =1defsomethingif a =@aspawndo# a is Int32 | Nil# a could be Int32
a +1endendendendSomeClass.new.something
filename.cr:9: undefined method '+' for Nil (compile-time type is (Int32 | Nil))
puts a + 1
^
================================================================================
PS: Thank you for making this awesome language! ❤️
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a bug or would be a nice feature. It could also be duplicate with #2962.
PS: Thank you for making this awesome language! ❤️
The text was updated successfully, but these errors were encountered: