shiika
shiika copied to clipboard
Improve error message of return type mismatch
Given
class A
def to_s # Forgot `-> String`
"??"
end
end
puts A.new.to_s
Actual
Error: the argument
str' of
Object#puts' should be String but got Void
Expected
Something like "Error: A#to_s must be return String"