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/javascriptThisAssignmentInStaticBlock.errors.txt
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
/src/a.js(10,7): error TS2417: Class static side 'typeof ElementsArray' incorrectly extends base class static side '{ isArray(arg: any): arg is any[]; readonly prototype: any[]; }'.
1
+
/src/a.js(10,7): error TS2417: Class static side 'typeof ElementsArray' incorrectly extends base class static side '{ isArray<T>(arg: T): arg is Cast<T extends readonly any[] ? T : T extends string ? never : T extends ArrayLike<infer U> ? U[] : unknown extends T ? any[] : never, T & {}>; readonly prototype: any[]; }'.
2
2
Types of property 'isArray' are incompatible.
3
-
Type '(arg: any) => boolean' is not assignable to type '(arg: any) => arg is any[]'.
3
+
Type '(arg: any) => boolean' is not assignable to type '<T>(arg: T) => arg is Cast<T extends readonly any[] ? T : T extends string ? never : T extends ArrayLike<infer U> ? U[] : unknown extends T ? any[] : never, T & {}>'.
4
4
Signature '(arg: any): boolean' must be a type predicate.
5
5
6
6
@@ -16,9 +16,9 @@
16
16
// GH#46468
17
17
class ElementsArray extends Array {
18
18
~~~~~~~~~~~~~
19
-
!!! error TS2417: Class static side 'typeof ElementsArray' incorrectly extends base class static side '{ isArray(arg: any): arg is any[]; readonly prototype: any[]; }'.
19
+
!!! error TS2417: Class static side 'typeof ElementsArray' incorrectly extends base class static side '{ isArray<T>(arg: T): arg is Cast<T extends readonly any[] ? T : T extends string ? never : T extends ArrayLike<infer U> ? U[] : unknown extends T ? any[] : never, T & {}>; readonly prototype: any[]; }'.
20
20
!!! error TS2417: Types of property 'isArray' are incompatible.
21
-
!!! error TS2417: Type '(arg: any) => boolean' is not assignable to type '(arg: any) => arg is any[]'.
21
+
!!! error TS2417: Type '(arg: any) => boolean' is not assignable to type '<T>(arg: T) => arg is Cast<T extends readonly any[] ? T : T extends string ? never : T extends ArrayLike<infer U> ? U[] : unknown extends T ? any[] : never, T & {}>'.
22
22
!!! error TS2417: Signature '(arg: any): boolean' must be a type predicate.
0 commit comments