Files
kotlin-fork/compiler/testData/diagnostics/tests/deprecated/deprecatedHidden.kt
T

14 lines
329 B
Kotlin
Vendored

// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE
@Deprecated("", level = DeprecationLevel.HIDDEN)
open class Foo
fun test(f: <!DEPRECATION_ERROR!>Foo<!>) {
f.toString()
val g: <!DEPRECATION_ERROR!>Foo<!>? = <!DEPRECATION_ERROR!>Foo<!>()
}
class Bar : <!DEPRECATION_ERROR!>Foo<!>()