Files
kotlin-fork/compiler/testData/diagnostics/tests/deprecated/hiddenPropertyAccessors.fir.kt
T
Andrey Zinovyev de3f31cf78 [FIR] Partial implementation of DEPRECATION(_ERROR) diagnostics
No support for inheritance deprecations
and deprecations in qualifier's parts
2021-07-07 16:19:28 +03:00

41 lines
916 B
Kotlin
Vendored

val v1: String
@Deprecated("", level = DeprecationLevel.HIDDEN)
get() = ""
@Deprecated("", level = DeprecationLevel.HIDDEN)
val v2 = ""
var v3: String
@Deprecated("", level = DeprecationLevel.HIDDEN)
get() = ""
set(value) {}
var v4: String
get() = ""
@Deprecated("", level = DeprecationLevel.HIDDEN)
set(value) {}
var v5: String
@Deprecated("", level = DeprecationLevel.HIDDEN)
get() = ""
@Deprecated("", level = DeprecationLevel.HIDDEN)
set(value) {}
@Deprecated("", level = DeprecationLevel.HIDDEN)
var v6: String
get() = ""
set(value) {}
fun test() {
<!INVISIBLE_REFERENCE!>v1<!>
<!INVISIBLE_REFERENCE!>v2<!>
<!INVISIBLE_REFERENCE!>v3<!>
v3 = ""
v4
<!INVISIBLE_REFERENCE!>v4<!> = ""
<!INVISIBLE_REFERENCE!>v5<!>
<!INVISIBLE_REFERENCE!>v5<!> = ""
<!INVISIBLE_REFERENCE!>v6<!>
<!INVISIBLE_REFERENCE!>v6<!> = ""
}