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

13 lines
212 B
Plaintext
Vendored

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