[FIR] Add diagnostic CONFLICTING_OVERLOADS & REDECLARATION

This commit is contained in:
Nick
2020-08-05 09:35:10 +03:00
parent 36984009e9
commit 4669e019d1
72 changed files with 681 additions and 247 deletions
@@ -3,10 +3,10 @@
// KT-3464 Front-end shouldn't allow override modifier in class declaration
override class A {
override companion object {}
open companion <!MANY_COMPANION_OBJECTS!>object<!> {}
abstract companion <!MANY_COMPANION_OBJECTS!>object<!> {}
final companion <!MANY_COMPANION_OBJECTS!>object<!> {}
override companion <!REDECLARATION!>object<!> {}
open companion <!MANY_COMPANION_OBJECTS, REDECLARATION!>object<!> {}
abstract companion <!MANY_COMPANION_OBJECTS, REDECLARATION!>object<!> {}
final companion <!MANY_COMPANION_OBJECTS, REDECLARATION!>object<!> {}
}
override object B1 {}