Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/explicitDefaultGetter.fir.kt
T

12 lines
212 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
class ExplicitAccessorForAnnotation {
val tt: String? = "good"
get
fun foo(): String {
if (tt is String) {
return tt
}
return ""
}
}