[FIR] Add INAPPLICABLE_OPERATOR_MODIFIER diagnostic

This commit is contained in:
Andrey Zinovyev
2021-08-16 14:59:20 +03:00
committed by TeamCityServer
parent 16f41bd80c
commit 1cd321a90f
37 changed files with 388 additions and 238 deletions
@@ -12,7 +12,7 @@ fun case1() {
class Case1() {
operator fun inc(): B {
<!INAPPLICABLE_OPERATOR_MODIFIER!>operator<!> fun inc(): B {
TODO()
}
}
@@ -29,7 +29,7 @@ fun case2() {
class Case2() : C() {
var i = 0
operator fun inc(): C {
<!INAPPLICABLE_OPERATOR_MODIFIER!>operator<!> fun inc(): C {
TODO()
}
@@ -12,7 +12,7 @@ fun case1() {
class Case1() {
operator fun dec(): B {
<!INAPPLICABLE_OPERATOR_MODIFIER!>operator<!> fun dec(): B {
TODO()
}
}
@@ -29,7 +29,7 @@ fun case2() {
class Case2() : C() {
var i = 0
operator fun dec(): C {
<!INAPPLICABLE_OPERATOR_MODIFIER!>operator<!> fun dec(): C {
TODO()
}