Don't report warning about implicitly inferred Nothing for call arguments if there is non-Nothing return type
^KT-43108 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
fun get(map: Map<String, Int>, key: String?): Int? {
|
||||
return map[key]?.let { x ->
|
||||
return x
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun get(/*0*/ map: kotlin.collections.Map<kotlin.String, kotlin.Int>, /*1*/ key: kotlin.String?): kotlin.Int?
|
||||
Reference in New Issue
Block a user