[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package foo
|
||||
|
||||
class A(val i: Int?) {
|
||||
fun test1() {
|
||||
if (this@A.i != null) {
|
||||
useInt(this.i)
|
||||
useInt(i)
|
||||
}
|
||||
}
|
||||
|
||||
inner class B {
|
||||
fun test2() {
|
||||
if (i != null) {
|
||||
useInt(this@A.i)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun A.foo() {
|
||||
if (this@foo.i != null) {
|
||||
useInt(this.i)
|
||||
useInt(i)
|
||||
}
|
||||
}
|
||||
|
||||
fun test3() {
|
||||
useFunction {
|
||||
if(i != null) {
|
||||
useInt(this.i)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun useInt(i: Int) = i
|
||||
fun useFunction(f: A.() -> Unit) = f
|
||||
Reference in New Issue
Block a user