-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow incremental with noEmit (#36483)
Fixes #32882
- Loading branch information
1 parent
f91f762
commit 0e9416c
Showing
9 changed files
with
82 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/tsconfig.json(3,9): error TS5053: Option 'noEmit' cannot be specified with option 'composite'. | ||
/tsconfig.json(4,9): error TS5053: Option 'noEmit' cannot be specified with option 'composite'. | ||
|
||
|
||
==== /tsconfig.json (2 errors) ==== | ||
{ | ||
"compilerOptions": { | ||
"noEmit": true, | ||
~~~~~~~~ | ||
!!! error TS5053: Option 'noEmit' cannot be specified with option 'composite'. | ||
"composite": true | ||
~~~~~~~~~~~ | ||
!!! error TS5053: Option 'noEmit' cannot be specified with option 'composite'. | ||
} | ||
} | ||
|
||
==== /a.ts (0 errors) ==== | ||
const x = 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,4 @@ | ||
=== /a.ts === | ||
const x = 10; | ||
>x : Symbol(x, Decl(a.ts, 0, 5)) | ||
|
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 @@ | ||
=== /a.ts === | ||
const x = 10; | ||
>x : 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,20 @@ | ||
/tsconfig.json(3,9): error TS5053: Option 'noEmit' cannot be specified with option 'incremental'. | ||
/tsconfig.json(4,9): error TS5053: Option 'noEmit' cannot be specified with option 'incremental'. | ||
|
||
|
||
==== /tsconfig.json (2 errors) ==== | ||
{ | ||
"compilerOptions": { | ||
"noEmit": true, | ||
~~~~~~~~ | ||
!!! error TS5053: Option 'noEmit' cannot be specified with option 'incremental'. | ||
"incremental": true | ||
~~~~~~~~~~~~~ | ||
!!! error TS5053: Option 'noEmit' cannot be specified with option 'incremental'. | ||
} | ||
} | ||
|
||
|
||
==== /a.ts (0 errors) ==== | ||
const x = 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,4 @@ | ||
=== /a.ts === | ||
const x = 10; | ||
>x : Symbol(x, Decl(a.ts, 0, 5)) | ||
|
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 @@ | ||
=== /a.ts === | ||
const x = 10; | ||
>x : 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,10 @@ | ||
// @Filename: /a.ts | ||
const x = 10; | ||
|
||
// @Filename: /tsconfig.json | ||
{ | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"composite": true | ||
} | ||
} |
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,11 @@ | ||
// @Filename: /a.ts | ||
const x = 10; | ||
|
||
// @Filename: /tsconfig.json | ||
{ | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"incremental": true | ||
} | ||
} | ||
|