Files
kotlin-fork/idea/testData/intentions/convertFunctionToProperty/unchangedElements.kt.after
T
2015-10-15 19:20:08 +03:00

16 lines
251 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
}
}