Check "kotlin" package usage when compiling common code

#KT-25369 Fixed
This commit is contained in:
Alexander Udalov
2018-07-24 13:43:32 +02:00
parent ddd3a0a46e
commit 3323fd5a11
5 changed files with 19 additions and 5 deletions
+3
View File
@@ -0,0 +1,3 @@
$TESTDATA_DIR$/../kotlinPackage.kt
-d
$TEMP_DIR$
+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