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
res=NewPseudoTypeInferredWithErrors(res.AsPseudoTypeInferred().Expression, res.AsPseudoTypeInferred().IsSignatureReturn, errorNodes) // Move error up to the accessor
Copy file name to clipboardExpand all lines: testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorsClasses.errors.txt
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ isolatedDeclarationErrorsClasses.ts(4,5): error TS9008: Method must have an expl
3
3
isolatedDeclarationErrorsClasses.ts(8,18): error TS7006: Parameter 'p' implicitly has an 'any' type.
4
4
isolatedDeclarationErrorsClasses.ts(8,18): error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
5
5
isolatedDeclarationErrorsClasses.ts(9,23): error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
6
-
isolatedDeclarationErrorsClasses.ts(11,28): error TS9013: Expression type can't be inferred with --isolatedDeclarations.
6
+
isolatedDeclarationErrorsClasses.ts(11,9): error TS9009: At least one accessor must have an explicit type annotation with --isolatedDeclarations.
7
7
isolatedDeclarationErrorsClasses.ts(12,9): error TS7032: Property 'setOnly' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
8
8
isolatedDeclarationErrorsClasses.ts(12,17): error TS7006: Parameter 'value' implicitly has an 'any' type.
9
9
isolatedDeclarationErrorsClasses.ts(12,17): error TS9009: At least one accessor must have an explicit type annotation with --isolatedDeclarations.
@@ -52,10 +52,9 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS9013: Expression type can't b
52
52
!!! related TS9028 isolatedDeclarationErrorsClasses.ts:9:19: Add a type annotation to the parameter p.
53
53
54
54
get getOnly() { return 1 + 1 }
55
-
~~~~~
56
-
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
55
+
~~~~~~~
56
+
!!! error TS9009: At least one accessor must have an explicit type annotation with --isolatedDeclarations.
57
57
!!! related TS9032 isolatedDeclarationErrorsClasses.ts:11:9: Add a return type to the get accessor declaration.
58
-
!!! related TS9035 isolatedDeclarationErrorsClasses.ts:11:28: Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit.
59
58
set setOnly(value) { }
60
59
~~~~~~~
61
60
!!! error TS7032: Property 'setOnly' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
0 commit comments