[FIR] Add diagnostic for primary constructor not called

This commit is contained in:
Nick
2020-07-31 18:01:52 +03:00
committed by Mikhail Glukhikh
parent bb0e1b7390
commit 0f213e58db
12 changed files with 44 additions and 23 deletions
@@ -1,5 +1,5 @@
annotation class A() {
<!ANNOTATION_CLASS_MEMBER!>constructor(s: Nothing?) {}<!>
<!ANNOTATION_CLASS_MEMBER!><!PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>constructor(s: Nothing?)<!> {}<!>
<!ANNOTATION_CLASS_MEMBER!>init {}<!>
<!ANNOTATION_CLASS_MEMBER!>fun foo() {}<!>
<!ANNOTATION_CLASS_MEMBER!>val bar: Nothing?<!>