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
val f =listOf("").<error descr="[TYPE_INFERENCE_PARAMETER_CONSTRAINT_ERROR] Type inference failed: fun <T> Iterable<T>.firstOrNull(predicate: (T) -> Boolean): T?
2
+
cannot be applied to
3
+
receiver: List<String> arguments: (Int)
4
+
">firstOrNull</error>(<error descr="[CONSTANT_EXPECTED_TYPE_MISMATCH] The integer literal does not conform to the expected type (String) -> Boolean">1</error>)
5
+
6
+
fun <T> listOf(element:T): List<T> = java.util.Collections.singletonList(element)
7
+
fun <T> Iterable<T>.firstOrNull(<warning>predicate</warning>: (T) ->Boolean): T?=null
0 commit comments