@@ -40,32 +40,32 @@ function noop() {
4040
4141// The function does not return a value...
4242{
43- whilst ( noop , predicate ) ; // $ExpectType void
44- whilst ( noop , predicate , { } ) ; // $ExpectType void
43+ whilst ( predicate , noop ) ; // $ExpectType void
44+ whilst ( predicate , noop , { } ) ; // $ExpectType void
4545}
4646
4747// The compiler throws an error if the function is provided a first argument which is not a function...
4848{
49- whilst ( 'abc' , predicate ) ; // $ExpectError
50- whilst ( 5 , predicate ) ; // $ExpectError
51- whilst ( true , predicate ) ; // $ExpectError
52- whilst ( false , predicate ) ; // $ExpectError
53- whilst ( [ ] , predicate ) ; // $ExpectError
54- whilst ( { } , predicate ) ; // $ExpectError
49+ whilst ( 'abc' , noop ) ; // $ExpectError
50+ whilst ( 5 , noop ) ; // $ExpectError
51+ whilst ( true , noop ) ; // $ExpectError
52+ whilst ( false , noop ) ; // $ExpectError
53+ whilst ( [ ] , noop ) ; // $ExpectError
54+ whilst ( { } , noop ) ; // $ExpectError
5555}
5656
5757// The compiler throws an error if the function is provided a second argument which is not a function...
5858{
59- whilst ( noop , 'abc' ) ; // $ExpectError
60- whilst ( noop , 5 ) ; // $ExpectError
61- whilst ( noop , true ) ; // $ExpectError
62- whilst ( noop , false ) ; // $ExpectError
63- whilst ( noop , [ ] ) ; // $ExpectError
64- whilst ( noop , { } ) ; // $ExpectError
59+ whilst ( predicate , 'abc' ) ; // $ExpectError
60+ whilst ( predicate , 5 ) ; // $ExpectError
61+ whilst ( predicate , true ) ; // $ExpectError
62+ whilst ( predicate , false ) ; // $ExpectError
63+ whilst ( predicate , [ ] ) ; // $ExpectError
64+ whilst ( predicate , { } ) ; // $ExpectError
6565}
6666
6767// The compiler throws an error if the function is provided fewer than two arguments...
6868{
6969 whilst ( ) ; // $ExpectError
70- whilst ( noop ) ; // $ExpectError
70+ whilst ( predicate ) ; // $ExpectError
7171}
0 commit comments