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
class Foo {
fun instanceMethod(): String =TODO()
companion object {
fun companionMethod(): String =TODO()
}
}
calling findOverridee on an instance of companionMethod / instanceMethod throws java.util.NoSuchElementException: Collection contains no element matching the predicate..
Since the method is nullable, i think it is better to return null instead of throwing?
The text was updated successfully, but these errors were encountered:
For the following code:
calling
findOverridee
on an instance ofcompanionMethod
/instanceMethod
throwsjava.util.NoSuchElementException: Collection contains no element matching the predicate.
.Since the method is
nullable
, i think it is better to return null instead of throwing?The text was updated successfully, but these errors were encountered: