Scripting: report error on duplicate import
#KT-48177 fixed (due to the path normalization)
This commit is contained in:
committed by
TeamCityServer
parent
306a035c68
commit
c204d7a86f
+6
@@ -121,6 +121,12 @@ class MainKtsTest {
|
||||
Assert.assertEquals(OUT_FROM_IMPORT_TEST, out)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testDuplicateImportError() {
|
||||
val res = evalFile(File("$TEST_DATA_ROOT/import-duplicate-test.main.kts"))
|
||||
assertFailed("Duplicate imports:", res)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testCompilerOptions() {
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
@file:Import("import-common.main.kts")
|
||||
@file:Import("../testData/import-common.main.kts")
|
||||
|
||||
sharedVar = sharedVar + 1
|
||||
Reference in New Issue
Block a user