-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add specific error message for unwanted '.ts' extension
- Loading branch information
Andy Hanson
committed
Jul 12, 2016
1 parent
f59b3a5
commit c6d91f9
Showing
7 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
tests/cases/compiler/user.ts(1,15): error TS2307: Cannot find module './m.ts'. | ||
tests/cases/compiler/user.ts(4,15): error TS2690: Module name should not include a '.ts' extension: './m.ts'. | ||
|
||
|
||
==== tests/cases/compiler/m.ts (0 errors) ==== | ||
export default 0; | ||
|
||
==== tests/cases/compiler/user.ts (1 errors) ==== | ||
// '.ts' extension is OK in a reference | ||
///<reference path="./m.ts"/> | ||
|
||
import x from "./m.ts"; | ||
~~~~~~~~ | ||
!!! error TS2307: Cannot find module './m.ts'. | ||
!!! error TS2690: Module name should not include a '.ts' extension: './m.ts'. | ||
|
||
==== tests/cases/compiler/m.ts (0 errors) ==== | ||
export default 0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters