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
@@ -6,6 +6,7 @@ import kotlin.test.assertEquals
var global = S("")
inline class Z(val x: Int) {
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
var test: S
get() = S("${global.x}$x")
set(value) {
@@ -14,6 +15,7 @@ inline class Z(val x: Int) {
}
inline class L(val x: Long) {
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
var test: S
get() = S("${global.x}$x")
set(value) {
@@ -22,6 +24,7 @@ inline class L(val x: Long) {
}
inline class S(val x: String) {
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
var test: S
get() = S("${global.x}$x")
set(value) {
@@ -30,6 +33,7 @@ inline class S(val x: String) {
}
inline class A(val x: Any) {
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
var test: S
get() = S("${global.x}$x")
set(value) {