blob: ec5c54447bdcd0f0896eee78e97d73cbbdcdc956 [file] [log] [blame]
// 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()
}
}