f2031ae642
This only applies to JVM and fq-names in declaration references in IR dumps. This enables us to run more irText tests on platforms other than JVM (see KT-58605).
17 lines
341 B
Kotlin
Vendored
17 lines
341 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: +ContextReceivers
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
interface NumberOperations {
|
|
fun Number.plus(other: Number): Number
|
|
}
|
|
|
|
class Matrix
|
|
|
|
context(NumberOperations) fun Matrix.plus(other: Matrix): Matrix = TODO()
|
|
|
|
fun NumberOperations.plusMatrix(m1: Matrix, m2: Matrix) {
|
|
m1.plus(m2)
|
|
m2.plus(m1)
|
|
}
|