13 lines
253 B
Kotlin
Vendored
13 lines
253 B
Kotlin
Vendored
public interface A {
|
|
public val x: Any
|
|
}
|
|
|
|
public class B(override public val x: Any) : A {
|
|
fun foo(): Int {
|
|
if (x is String) {
|
|
return <!DEBUG_INFO_SMARTCAST!>x<!>.length
|
|
} else {
|
|
return 0
|
|
}
|
|
}
|
|
} |