JS: report errors on different external items:

* data classes
* val/var parameters of primary constructors
* enum entry with body
* anonymous `init {}` block in classes
This commit is contained in:
Alexey Andreev
2016-12-20 17:50:44 +03:00
parent 03682ee849
commit 79ba6a57d6
28 changed files with 179 additions and 28 deletions
@@ -1,4 +1,4 @@
external annotation class <!WRONG_EXTERNAL_DECLARATION!>A<!>
external annotation class <!WRONG_EXTERNAL_DECLARATION!>A(val x: Int)<!>
val x: Int
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = noImpl
@@ -16,4 +16,6 @@ class C {
external class D {
val a: Int
<!WRONG_EXTERNAL_DECLARATION!>external get()<!> = noImpl
}
}
external data class <!WRONG_EXTERNAL_DECLARATION!>E(val x: Int)<!>