You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/isolatedDeclarationsAddUndefined.errors.txt
+6-4
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
file2.ts(1,26): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
1
+
file2.ts(4,38): error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
2
2
3
3
4
4
==== file1.ts (0 errors) ====
@@ -12,10 +12,12 @@ file2.ts(1,26): error TS9025: Declaration emit for this parameter requires impli
!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
17
-
!!! related TS9028 file2.ts:1:26: Add a type annotation to the parameter ip.
18
15
}
16
+
type T = number
17
+
export function foo2(p = (ip = 10 as T, v: number): void => {}): void{}
18
+
~
19
+
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
20
+
!!! related TS9028 file2.ts:4:27: Add a type annotation to the parameter ip.
0 commit comments