Files
kotlin-fork/idea/testData/intentions/convertFunctionToProperty/unchangedElements.kt.after
T
2017-07-19 15:03:00 +02:00

17 lines
255 B
Plaintext
Vendored

// 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
}
}