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

14 lines
230 B
Kotlin
Vendored

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