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

15 lines
248 B
Kotlin
Vendored

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