JS: add restrictions to external modifier according to KT-13893

This commit is contained in:
Alexey Andreev
2016-11-25 17:52:40 +03:00
parent c0c6992ea6
commit d0ffb5bd32
26 changed files with 298 additions and 290 deletions
@@ -0,0 +1,19 @@
<!WRONG_MODIFIER_TARGET!>external annotation class A<!>
val x: Int
<!WRONG_MODIFIER_TARGET!>external get() = noImpl<!>
class B
val B.x: Int
<!WRONG_MODIFIER_TARGET!>external get() = noImpl<!>
class C {
val a: Int
<!WRONG_MODIFIER_TARGET!>external get() = noImpl<!>
}
external class D {
val a: Int
<!WRONG_MODIFIER_TARGET!>external get() = noImpl<!>
}