add test to check that "Only the Kotlin standard library is allowed to use the 'kotlin' package" is reported in JPS builds
This commit is contained in:
@@ -697,6 +697,16 @@ class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
|
||||
)
|
||||
}
|
||||
|
||||
fun testCodeInKotlinPackage() {
|
||||
initProject()
|
||||
|
||||
val result = makeAll()
|
||||
result.assertFailed()
|
||||
val errors = result.getMessages(BuildMessage.Kind.ERROR)
|
||||
|
||||
Assert.assertEquals("Only the Kotlin standard library is allowed to use the 'kotlin' package", errors.single().messageText)
|
||||
}
|
||||
|
||||
fun testDoNotCreateUselessKotlinIncrementalCaches() {
|
||||
initProject()
|
||||
makeAll().assertSuccessful()
|
||||
|
||||
Reference in New Issue
Block a user