@@ -133,20 +133,26 @@ test.each([
133133} ) ;
134134
135135test . each ( [
136- ...( [
137- { value : "(s: string) => s" } ,
138- { value : "((s: string) => s)" } ,
139- { value : "function(s: string) { return s; }" } ,
140- { value : "(function(s: string) { return s; })" } ,
141- ] as TestFunction [ ] ) . map ( ( f ) : [ TestFunction , string [ ] ] => [ f , [ "0" , "'foobar'" ] ] ) ,
142- ...( [
143- { value : "function(this: any, s: string) { return s; }" } ,
144- { value : "(function(this: any, s: string) { return s; })" } ,
145- ] as TestFunction [ ] ) . map ( ( f ) : [ TestFunction , string [ ] ] => [ f , [ "0" , "'foobar'" ] ] ) ,
146- ...( [
147- { value : "function(this: void, s: string) { return s; }" } ,
148- { value : "(function(this: void, s: string) { return s; })" } ,
149- ] as TestFunction [ ] ) . map ( ( f ) : [ TestFunction , string [ ] ] => [ f , [ "'foobar'" ] ] ) ,
136+ ...(
137+ [
138+ { value : "(s: string) => s" } ,
139+ { value : "((s: string) => s)" } ,
140+ { value : "function(s: string) { return s; }" } ,
141+ { value : "(function(s: string) { return s; })" } ,
142+ ] as TestFunction [ ]
143+ ) . map ( ( f ) : [ TestFunction , string [ ] ] => [ f , [ "0" , "'foobar'" ] ] ) ,
144+ ...(
145+ [
146+ { value : "function(this: any, s: string) { return s; }" } ,
147+ { value : "(function(this: any, s: string) { return s; })" } ,
148+ ] as TestFunction [ ]
149+ ) . map ( ( f ) : [ TestFunction , string [ ] ] => [ f , [ "0" , "'foobar'" ] ] ) ,
150+ ...(
151+ [
152+ { value : "function(this: void, s: string) { return s; }" } ,
153+ { value : "(function(this: void, s: string) { return s; })" } ,
154+ ] as TestFunction [ ]
155+ ) . map ( ( f ) : [ TestFunction , string [ ] ] => [ f , [ "'foobar'" ] ] ) ,
150156] ) ( "Valid function expression argument with no signature (%p, %p)" , ( testFunction , args ) => {
151157 util . testFunction `
152158 const takesFunction: any = (fn: (this: void, ...args: any[]) => any, ...args: any[]) => {
0 commit comments