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
+2 -2
View File
@@ -1,7 +1,7 @@
class Pair<out A, out B>(val first: A, val second: B)
class Example {
<!INAPPLICABLE_INFIX_MODIFIER!>infix fun to(other: Example) = Pair(this, other)<!>
infix fun to(other: Example) = Pair(this, other)
fun toNonInfix(other: Example) = Pair(this, other)
}
@@ -35,4 +35,4 @@ fun test() {
a toExtNonInfixDefaultValues b
a withLambda { }
}
}