Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/nestedCalls/kt5971NestedSafeCall.fir.kt
T
Dmitriy Novozhilov 09994ee8ea [FIR] Make type of safe call always nullable
^KT-46860 In Progress
2021-06-25 16:37:32 +03:00

11 lines
212 B
Kotlin
Vendored

// COMPARE_WITH_LIGHT_TREE
// !DIAGNOSTICS: -UNUSED_PARAMETER
//KT-5971 Missing error when fun argument is safe call
fun foo(i: Int) {}
fun test(s: String?) {
foo(<!ARGUMENT_TYPE_MISMATCH!>s?.length<!>)
}