JS: add checker to detect non-external declarations in files marked by JsModule or JsQualifier annotation

This commit is contained in:
Alexey Andreev
2017-01-24 15:34:57 +03:00
parent cc67f6c9f7
commit ba65e58fdd
13 changed files with 132 additions and 4 deletions
@@ -0,0 +1,9 @@
@file:JsModule("lib")
class <!NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE!>A<!> {
class B
fun bar() {}
}
<!NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE!>fun foo()<!> = "OK"