Files
kotlin-fork/idea/testData/intentions/convertFunctionToProperty/unchangedElements.kt.after
T
2015-02-05 23:12:38 +03:00

16 lines
250 B
Plaintext

// WITH_RUNTIME
annotation class X(val s: String)
class A(val n: Int) {
val t = 1
internal X("1") val <T : Number> T.foo: Boolean
get() = toInt() - n > 1
val u = 2
}
fun test() {
val t = with(A(1)) {
2.5.foo
}
}