[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
class My {
|
||||
val x: Int
|
||||
get() = field + if (z != "") 1 else 0
|
||||
|
||||
val y: Int
|
||||
get() = field - if (z == "") 0 else 1
|
||||
|
||||
val w: Int
|
||||
|
||||
init {
|
||||
// Safe, val never has a setter
|
||||
x = 0
|
||||
this.y = 0
|
||||
// Unsafe
|
||||
w = this.x + y
|
||||
}
|
||||
|
||||
val z = "1"
|
||||
}
|
||||
Reference in New Issue
Block a user