Files
kotlin/idea/testData/refactoring/extractFunction/basic/memberValUnderSmartCast.kt
2015-09-08 02:05:46 +03:00

13 lines
279 B
Kotlin
Vendored

// SUGGESTED_NAMES: i, getKm
// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: public final val meters: kotlin.Int? defined in A
class A {
val meters: Int? = 1
}
fun test() {
val a = A()
if (a.meters == null) return
val km = <selection>a.meters / 10</selection>
}