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
record A, argument : UInt64
variable1="hello"if variable1.is_a?(UInt64)
variable2= variable1endexitif variable2.nil?
A.new(argument: variable2)
Error in line 11: no overload matches 'A.new', argument: NoReturn
Overloads are:
- A.new(argument : UInt64)
I don't think variable2's type should be NoReturn here.
But now if I remove argument: from the last line (so A.new(variable2)), no compile-time error happens, but I expect the same to happen since A.new(variable2) and A.new(argument: variable2) should normally do the same thing.
The text was updated successfully, but these errors were encountered:
I don't think
variable2
's type should beNoReturn
here.But now if I remove
argument:
from the last line (soA.new(variable2)
), no compile-time error happens, but I expect the same to happen sinceA.new(variable2)
andA.new(argument: variable2)
should normally do the same thing.The text was updated successfully, but these errors were encountered: