34e6649d31
Before this commit, nullable argument could match not null parameter. Now we require also correct nullability that breaks some cases
10 lines
185 B
Kotlin
Vendored
10 lines
185 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
//KT-5971 Missing error when fun argument is safe call
|
|
|
|
fun foo(i: Int) {}
|
|
|
|
fun test(s: String?) {
|
|
<!INAPPLICABLE_CANDIDATE!>foo<!>(s?.length)
|
|
}
|