15 lines
248 B
Kotlin
Vendored
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()
|
|
}
|
|
} |