Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt
T
Sergej Jaskiewicz f2031ae642 [IR] Don't print multifile/synthetic facade class names in irText tests
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).
2023-06-05 10:40:17 +00:00

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)
}