Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/publicVals/simple.kt
T
2015-10-14 20:39:35 +03:00

13 lines
323 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 <!DEBUG_INFO_SMARTCAST!>x<!>.length
else
return 0
}
}