Revert "Raise RESERVED_VAR_PROPERTY_OF_VALUE_CLASS to error"
This reverts commit bad197e075.
This commit is contained in:
-3
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user