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:
Victor Petukhov
2020-11-03 13:03:09 +03:00
parent 7859287337
commit f052bc341c
7 changed files with 32 additions and 2 deletions
@@ -0,0 +1,6 @@
// FIR_IDENTICAL
fun get(map: Map<String, Int>, key: String?): Int? {
return map[key]?.let { x ->
return x
}
}
@@ -0,0 +1,3 @@
package
public fun get(/*0*/ map: kotlin.collections.Map<kotlin.String, kotlin.Int>, /*1*/ key: kotlin.String?): kotlin.Int?