Closed mame closed 1 month ago
TypeProf caused an infinite loop under the following situation:
@a = @b[0] @b = '/' + @a
This change fixes the loop by making String#+ to accept String?.
String#+
String?
TODO: it should emit a warning, but it is a bot complex considering the situation where passing Integer | String | nil to the following foo:
Integer | String | nil
def foo: (Integer) -> Integer | (String) -> String ``
TypeProf caused an infinite loop under the following situation:
This change fixes the loop by making
String#+
to acceptString?
.TODO: it should emit a warning, but it is a bot complex considering the situation where passing
Integer | String | nil
to the following foo: