Raise RESERVED_VAR_PROPERTY_OF_VALUE_CLASS to error

This commit is contained in:
Ilmir Usmanov
2021-02-15 12:43:56 +01:00
parent 56a104dda9
commit bad197e075
6 changed files with 16 additions and 1 deletions
@@ -15,6 +15,7 @@ inline class Z(val x: Int) : IFoo {
override fun fooFun(z: Z): Z = Z(z.x + x)
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
override var fooVar: Z
get() = Z(global.x + x)
set(value) {
@@ -23,6 +24,7 @@ inline class Z(val x: Int) : IFoo {
fun barFun(z: Z): Z = Z(z.x * 100 + x)
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
var barVar: Z
get() = Z(global.x * 100 + x)
set(value) {