[NI] Fix checks for infix/operator conventions

This commit is contained in:
Mikhail Zarechenskiy
2019-09-17 17:22:35 +03:00
parent f45a49b122
commit a83225218f
8 changed files with 22 additions and 25 deletions
@@ -1,4 +1,3 @@
// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER, -EXTENSION_SHADOWED_BY_MEMBER
class Example {
@@ -20,7 +19,7 @@ fun a() {
val b = Example()
a + b
a <!NI;OPERATOR_MODIFIER_REQUIRED!>-<!> b
a - b
a * b
a <!OPERATOR_MODIFIER_REQUIRED!>/<!> b
@@ -31,7 +30,7 @@ fun a() {
with (Example()) {
consumeInt(this + a)
consumeString(<!NI;TYPE_MISMATCH!>this <!NI;OPERATOR_MODIFIER_REQUIRED!>-<!> b<!>)
consumeString(this - b)
consumeInt(this * a)
consumeInt(this <!OPERATOR_MODIFIER_REQUIRED!>/<!> b)