[FIR] Implement OPERATOR_RENAMED_ON_IMPORT diagnostic

This commit is contained in:
Andrey Zinovyev
2021-06-02 16:03:21 +03:00
committed by Space
parent 7c669b65c3
commit c507d1c938
9 changed files with 45 additions and 16 deletions
@@ -1,16 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: a.kt
package a
interface A
operator fun A.plus(other: A): A = this
// FILE: b.kt
package b
import a.A
import a.plus as minus
fun test(a1: A, a2: A) =
a1 - a2
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: a.kt
package a