Report warning when two .kt files get same paths in JS source map

This commit is contained in:
Alexey Andreev
2017-06-19 12:24:36 +03:00
parent 60dd475493
commit 78b238a05b
7 changed files with 60 additions and 0 deletions
@@ -0,0 +1 @@
fun bar() = foo() + "bar"
@@ -0,0 +1 @@
fun foo() = "foo"
@@ -0,0 +1,7 @@
$TESTDATA_DIR$/sourceMapDuplicatePath/
-no-stdlib
-source-map
-source-map-source-roots
$TESTDATA_DIR$/sourceMapDuplicatePath/foo:$TESTDATA_DIR$/sourceMapDuplicatePath/bar
-output
$TEMP_DIR$/out.js
@@ -0,0 +1,2 @@
warning: there are files with same path 'lib.kt', relative to source roots: '$TESTDATA_DIR$/sourceMapDuplicatePath/foo/lib.kt' and '$TESTDATA_DIR$/sourceMapDuplicatePath/bar/lib.kt'. This will likely cause problems with debugger
OK
@@ -0,0 +1,2 @@
// EXISTS: out.js
// EXISTS: out.js.map