[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
// !LANGUAGE: -RestrictionOfValReassignmentViaBackingField
|
||||
|
||||
package a
|
||||
|
||||
import java.util.HashSet
|
||||
|
||||
val a: MutableSet<String>? = null
|
||||
get() {
|
||||
if (a == null) {
|
||||
field = HashSet()
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
||||
class R {
|
||||
val b: String? = null
|
||||
get() {
|
||||
if (b == null) {
|
||||
field = "b"
|
||||
}
|
||||
return b
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user