Report warning when two .kt files get same paths in JS source map
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user