Skip to content

Commit a0f31ee

Browse files
committed
Unmark a test from TODO of which
the auto-fixer is trying to add type due to it being an error in isolatedDeclarations mode. Signed-off-by: Hana Joo <[email protected]>
1 parent f1cfac4 commit a0f31ee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/baselines/reference/isolated-declarations/auto-fixed/diff/ambientConstLiterals.d.ts.diff

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// [[Reason: TODO: Printing differences. Seems avoidable.]] ////
1+
// [[Reason: We made this is an error, thus the auto-fixer is trying to fix it. Although it's possible syntactically to figure out that E is an enum, I think we should rather make this an error for now.]] ////
22

33
//// [tests/cases/compiler/ambientConstLiterals.ts] ////
44

5-
===================================================================
6-
--- TSC declarations
7-
+++ DTE declarations
8-
@@ -15,9 +15,9 @@
5+
===================================================================
6+
--- TSC declarations
7+
+++ DTE declarations
8+
@@ -15,9 +15,9 @@
99
declare const c5: 123;
1010
declare const c6: -123;
1111
declare const c7 = true;

tests/cases/compiler/ambientConstLiterals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @declaration: true
2-
// @isolatedDeclarationFixedDiffReason: TODO: Printing differences. Seems avoidable.
2+
// @isolatedDeclarationFixedDiffReason: We made this is an error, thus the auto-fixer is trying to fix it. Although it's possible syntactically to figure out that E is an enum, I think we should rather make this an error for now.
33

44
function f<T>(x: T): T {
55
return x;

0 commit comments

Comments
 (0)