12 lines
212 B
Kotlin
Vendored
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 ""
|
|
}
|
|
} |