Revert "Raise RESERVED_VAR_PROPERTY_OF_VALUE_CLASS to error"

This reverts commit bad197e075.
This commit is contained in:
Ilmir Usmanov
2021-03-12 03:19:06 +01:00
parent 050db6d454
commit 6429ac17d8
6 changed files with 1 additions and 16 deletions
@@ -6,7 +6,6 @@ import kotlin.test.assertEquals
inline class S(val xs: Array<String>)
interface IFoo {
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
var S.extVar: String
}
@@ -15,14 +14,12 @@ interface GFoo<T> {
}
object FooImpl : IFoo {
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
override var S.extVar: String
get() = xs[0]
set(value) { xs[0] = value }
}
object GFooImpl : GFoo<S> {
@Suppress("RESERVED_VAR_PROPERTY_OF_VALUE_CLASS")
override var S.extVar: String
get() = xs[0]
set(value) { xs[0] = value }