FIR: Fix false positive INAPPLICABLE_INFIX_MODIFIER

This commit is contained in:
Denis Zharkov
2020-04-20 15:29:14 +03:00
parent 27b860682b
commit fa3b3e7a9a
16 changed files with 65 additions and 42 deletions
@@ -1,10 +1,10 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER, -EXTENSION_SHADOWED_BY_MEMBER
class Example {
<!INAPPLICABLE_INFIX_MODIFIER!>operator infix fun plus(other: Example) = 0<!>
operator infix fun plus(other: Example) = 0
fun minus(other: Example) = 0
<!INAPPLICABLE_INFIX_MODIFIER!>operator infix fun times(other: Example) = 0<!>
operator infix fun times(other: Example) = 0
fun div(other: Example) = 0
}
@@ -42,4 +42,4 @@ fun a() {
}
fun consumeInt(i: Int) {}
fun consumeString(s: String) {}
fun consumeString(s: String) {}