13 lines
296 B
Kotlin
Vendored
13 lines
296 B
Kotlin
Vendored
public class X {
|
|
public val x : String? = null
|
|
public fun fn(): Int {
|
|
if (x != null)
|
|
// Smartcast is possible because it's value property with default getter
|
|
// used in the same module
|
|
return x.length
|
|
else
|
|
return 0
|
|
}
|
|
}
|
|
|