FIR checkers: simplify hasPrimaryConstructor by source element check

This commit is contained in:
Mikhail Glukhikh
2020-11-19 15:38:47 +03:00
parent 0838ab7fe7
commit 1e3621a896
6 changed files with 12 additions and 45 deletions
@@ -21,7 +21,7 @@ interface T1 {}
interface T2<T> {}
interface Test() {
interface <!CONSTRUCTOR_IN_INTERFACE!>Test()<!> {
}
interface Test1 : <!INTERFACE_WITH_SUPERCLASS, SUPERTYPE_INITIALIZED_IN_INTERFACE!>C2<!>() {}
@@ -2,11 +2,11 @@
class C(val a: String) {}
interface T1(val x: String) {}
interface <!CONSTRUCTOR_IN_INTERFACE!>T1(val x: String)<!> {}
interface T2 constructor() {}
interface <!CONSTRUCTOR_IN_INTERFACE!>T2 constructor()<!> {}
interface T3 private constructor(a: Int) {}
interface <!CONSTRUCTOR_IN_INTERFACE!>T3 private constructor(a: Int)<!> {}
interface T4 {
<!CONSTRUCTOR_IN_INTERFACE!>constructor(a: Int)<!> {
@@ -14,5 +14,5 @@ interface T4 {
}
}
interface T5 private () : T4 {}
interface T6 private<!SYNTAX!><!> : T5 {}
interface <!CONSTRUCTOR_IN_INTERFACE!>T5 private ()<!> : T4 {}
interface <!CONSTRUCTOR_IN_INTERFACE!>T6<!> private<!SYNTAX!><!> : T5 {}
@@ -1,6 +1,6 @@
open class bar()
interface Foo() : <!INTERFACE_WITH_SUPERCLASS!>bar<!>(), bar, bar {
interface <!CONSTRUCTOR_IN_INTERFACE!>Foo()<!> : <!INTERFACE_WITH_SUPERCLASS!>bar<!>(), bar, bar {
}
interface Foo2 : <!INTERFACE_WITH_SUPERCLASS!>bar<!>, Foo {