[FIR] Add diagnostic CONFLICTING_OVERLOADS & REDECLARATION
This commit is contained in:
+4
-4
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user