34e6649d31
Before this commit, nullable argument could match not null parameter. Now we require also correct nullability that breaks some cases
6 lines
188 B
Kotlin
Vendored
6 lines
188 B
Kotlin
Vendored
fun Any?.foo(my: My) = my === this
|
|
|
|
class My(val x: Any)
|
|
|
|
// my is nullable in brackets because Any?.foo has nullable receiver
|
|
fun foo(my: My?) = my?.x.<!INAPPLICABLE_CANDIDATE!>foo<!>(my) |