[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
fun foo() = 42
|
||||
|
||||
class Your {
|
||||
fun bar() = 13
|
||||
}
|
||||
|
||||
class My {
|
||||
val your = Your()
|
||||
|
||||
val x = foo()
|
||||
|
||||
val y = Your().bar()
|
||||
|
||||
val z = your.bar()
|
||||
|
||||
// This extension function also can use our properties,
|
||||
// so the call is also dangerous
|
||||
val w = your.gav()
|
||||
|
||||
val v = Your().gav()
|
||||
|
||||
val t = your.other()
|
||||
|
||||
val r = Your().other()
|
||||
|
||||
fun Your.gav() = if (your.bar() == 0) t else r
|
||||
}
|
||||
|
||||
fun Your.other() = "3"
|
||||
Reference in New Issue
Block a user