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

11 lines
216 B
Kotlin
Vendored

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