34e6649d31
Before this commit, nullable argument could match not null parameter. Now we require also correct nullability that breaks some cases
11 lines
196 B
Kotlin
Vendored
11 lines
196 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
class MyClass(var p: String?)
|
|
|
|
fun bar(s: String): Int {
|
|
return s.length
|
|
}
|
|
|
|
fun foo(m: MyClass): Int {
|
|
m.p = "xyz"
|
|
return <!INAPPLICABLE_CANDIDATE!>bar<!>(m.p)
|
|
} |