Raise RESERVED_VAR_PROPERTY_OF_VALUE_CLASS to error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user