Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.fir.kt
T

15 lines
268 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
package a
class A {}
fun test(a1: A, a2: A) {
val range = "island".."isle"
a1<!INAPPLICABLE_CANDIDATE!>..<!>a2
}
public operator fun <T: Comparable<T>> T.rangeTo(that: T): ClosedRange<T> {
throw UnsupportedOperationException()
}