Skip to content

Commit 68c65cd

Browse files
committed
Test case when one of the input file is output file name
1 parent 2860435 commit 68c65cd

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error TS5054: Could not write file 'tests/cases/compiler/b.js' which is one of the input files.
2+
3+
4+
!!! error TS5054: Could not write file 'tests/cases/compiler/b.js' which is one of the input files.
5+
==== tests/cases/compiler/a.ts (0 errors) ====
6+
class c {
7+
}
8+
9+
==== tests/cases/compiler/b.js (0 errors) ====
10+
function foo() {
11+
}
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// @out: tests/cases/compiler/b.js
2+
// @filename: a.ts
3+
class c {
4+
}
5+
6+
// @filename: b.js
7+
function foo() {
8+
}

0 commit comments

Comments
 (0)