Test case when one of the input file is output file name

This commit is contained in:
Sheetal Nandi
2015-09-16 13:22:10 -07:00
parent 2860435a2e
commit 68c65cd29e
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,12 @@
error TS5054: Could not write file 'tests/cases/compiler/b.js' which is one of the input files.
!!! error TS5054: Could not write file 'tests/cases/compiler/b.js' which is one of the input files.
==== tests/cases/compiler/a.ts (0 errors) ====
class c {
}
==== tests/cases/compiler/b.js (0 errors) ====
function foo() {
}
@@ -0,0 +1,8 @@
// @out: tests/cases/compiler/b.js
// @filename: a.ts
class c {
}
// @filename: b.js
function foo() {
}