KJS: allow to use packages with names starting with "kotlin" only if the -Xallow-kotlin-package command line option is specified

#KT-14668 Fixed
This commit is contained in:
Zalim Bashorov
2017-01-27 04:14:00 +03:00
parent 7195e26ae2
commit 29ac01f2e2
16 changed files with 84 additions and 30 deletions
+4
View File
@@ -0,0 +1,4 @@
compiler/testData/cli/kotlinPackage.kt:1:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
package kotlin.mylibrary
^
COMPILATION_ERROR