Prohibit external modifiers on classes and properties in JVM target

This commit is contained in:
Alexey Andreev
2016-11-25 18:28:45 +03:00
parent d0ffb5bd32
commit 7e37d5d6fa
4 changed files with 53 additions and 1 deletions
@@ -0,0 +1,9 @@
<!WRONG_MODIFIER_TARGET!>external class A<!>
<!WRONG_MODIFIER_TARGET!>external val foo: Int = 23<!>
class B {
<!WRONG_MODIFIER_TARGET!>external class A<!>
<!WRONG_MODIFIER_TARGET!>external val foo: Int = 23<!>
}