c613b991bf
#KT-2109 Fixed
21 lines
277 B
Plaintext
21 lines
277 B
Plaintext
//KT-2109 Nullability inference fails in extension function
|
|
package kt2109
|
|
|
|
class A {
|
|
fun foo() {}
|
|
}
|
|
|
|
fun A?.bar() {
|
|
if (this == null) {
|
|
return
|
|
}
|
|
foo()
|
|
}
|
|
|
|
fun A.baz() {
|
|
if (<!SENSELESS_COMPARISON!>this == null<!>) {
|
|
return
|
|
}
|
|
foo()
|
|
}
|