ruby/typeprof

Special handling for Array#min, max, etc.

mame opened this issue · 0 comments

mame commented
as = [1, 2, 3]
as.min.to_s(2) #=> [error] failed to resolve overload: nil#to_s

Array[Elem]#min returns Elem | nil in RBS definition. It is correct but it would be useful to return Elem when the receiver is a non-empty tuple.