FIR: Fix false positive INAPPLICABLE_INFIX_MODIFIER
This commit is contained in:
+3
-3
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user