[FIR] KT-57803: Report the error message for light tree
The renaming prevents the JVM clash. ^KT-57803 Fixed
This commit is contained in:
committed by
Space Team
parent
7f74950993
commit
23f87eda1f
@@ -0,0 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-57803
|
||||
|
||||
package kotlin.internal
|
||||
|
||||
fun main(args: Array<String>) {}
|
||||
@@ -0,0 +1,3 @@
|
||||
$TESTDATA_DIR$/forbidKotlinPackage.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
@@ -0,0 +1,4 @@
|
||||
compiler/testData/cli/jvm/forbidKotlinPackage.kt:4:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin.internal
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1,5 @@
|
||||
$TESTDATA_DIR$/forbidKotlinPackage.kt
|
||||
-language-version
|
||||
2.0
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
@@ -0,0 +1,5 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
compiler/testData/cli/jvm/forbidKotlinPackage.kt:4:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin.internal
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
Reference in New Issue
Block a user