-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06331b5
commit 0208345
Showing
6 changed files
with
42 additions
and
5 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
14 changes: 14 additions & 0 deletions
14
tests/baselines/reference/jsFileCompilationAbstractModifier.errors.txt
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file. | ||
tests/cases/compiler/a.js(1,1): error TS8009: 'abstract' can only be used in a .ts file. | ||
tests/cases/compiler/a.js(2,5): error TS8009: 'abstract' can only be used in a .ts file. | ||
|
||
|
||
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file. | ||
==== tests/cases/compiler/a.js (2 errors) ==== | ||
abstract class c { | ||
~~~~~~~~ | ||
!!! error TS8009: 'abstract' can only be used in a .ts file. | ||
abstract x; | ||
~~~~~~~~ | ||
!!! error TS8009: 'abstract' can only be used in a .ts file. | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/baselines/reference/jsFileCompilationConstModifier.symbols
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
=== tests/cases/compiler/a.js === | ||
const c = 10; | ||
>c : Symbol(c, Decl(a.js, 0, 5)) | ||
|
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/jsFileCompilationConstModifier.types
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/compiler/a.js === | ||
const c = 10; | ||
>c : 10 | ||
>10 : 10 | ||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// @allowJs: true | ||
// @filename: a.js | ||
abstract class c { | ||
abstract x; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// @allowJs: true | ||
// @filename: a.js | ||
// @noEmit: true | ||
const c = 10; |