Files
kotlin-fork/idea/testData/intentions/convertPropertyToFunction/unchangedElements.kt.after
T
2017-07-07 16:48:31 +02:00

14 lines
223 B
Plaintext
Vendored

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