Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver2.kt
T
2021-08-25 21:53:23 +00:00

16 lines
276 B
Kotlin
Vendored

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