[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//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 (this == null) {
|
||||
return
|
||||
}
|
||||
foo()
|
||||
}
|
||||
Reference in New Issue
Block a user