@@ -36,21 +36,21 @@ function fcn( x: number, y: number, z: number, w: number ): number {
3636
3737// The function returns undefined...
3838{
39- const x = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
40- const y = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
41- const z = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
42- const w = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
43- const out = [ [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ] ;
39+ const x = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
40+ const y = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
41+ const z = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
42+ const w = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
43+ const out = [ [ [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ] ] ;
4444
45- const shapes : [ Array < number > , Array < number > , Array < number > , Array < number > , Array < number > ] = [ [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 , 2 ] ] ;
45+ const shapes : [ Array < number > , Array < number > , Array < number > , Array < number > , Array < number > ] = [ [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] ] ;
4646
4747 bquaternary4d ( [ x , y , z , w , out ] , shapes , fcn ) ; // $ExpectType void
4848 bquaternary4d ( [ x [ 0 ] , y , z , w , out ] , [ [ shapes [ 0 ] [ 1 ] ] , shapes [ 1 ] , shapes [ 2 ] , shapes [ 3 ] , shapes [ 4 ] ] , fcn ) ; // $ExpectType void
4949}
5050
5151// The compiler throws an error if the function is provided a first argument which is not an array of nested arrays...
5252{
53- const shapes : [ Array < number > , Array < number > , Array < number > , Array < number > , Array < number > ] = [ [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 , 2 ] ] ;
53+ const shapes : [ Array < number > , Array < number > , Array < number > , Array < number > , Array < number > ] = [ [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] ] ;
5454
5555 bquaternary4d ( 'abc' , shapes , fcn ) ; // $ExpectError
5656 bquaternary4d ( 3.14 , shapes , fcn ) ; // $ExpectError
@@ -64,11 +64,11 @@ function fcn( x: number, y: number, z: number, w: number ): number {
6464
6565// The compiler throws an error if the function is provided a second argument which is not an array of arrays...
6666{
67- const x = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
68- const y = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
69- const z = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
70- const w = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
71- const out = [ [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ] ;
67+ const x = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
68+ const y = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
69+ const z = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
70+ const w = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
71+ const out = [ [ [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ] ] ;
7272
7373 bquaternary4d ( [ x , y , z , w , out ] , 'abc' , fcn ) ; // $ExpectError
7474 bquaternary4d ( [ x , y , z , w , out ] , 3.14 , fcn ) ; // $ExpectError
@@ -82,13 +82,13 @@ function fcn( x: number, y: number, z: number, w: number ): number {
8282
8383// The compiler throws an error if the function is provided a third argument which is not a valid callback...
8484{
85- const x = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
86- const y = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
87- const z = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
88- const w = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
89- const out = [ [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ] ;
85+ const x = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
86+ const y = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
87+ const z = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
88+ const w = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
89+ const out = [ [ [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ] ] ;
9090
91- const shapes : [ Array < number > , Array < number > , Array < number > , Array < number > , Array < number > ] = [ [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 , 2 ] ] ;
91+ const shapes : [ Array < number > , Array < number > , Array < number > , Array < number > , Array < number > ] = [ [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] ] ;
9292
9393 bquaternary4d ( [ x , y , z , w , out ] , shapes , 'abc' ) ; // $ExpectError
9494 bquaternary4d ( [ x , y , z , w , out ] , shapes , 3.14 ) ; // $ExpectError
@@ -101,13 +101,13 @@ function fcn( x: number, y: number, z: number, w: number ): number {
101101
102102// The compiler throws an error if the function is provided an unsupported number of arguments...
103103{
104- const x = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
105- const y = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
106- const z = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
107- const w = [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ;
108- const out = [ [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ] ;
104+ const x = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
105+ const y = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
106+ const z = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
107+ const w = [ [ [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ] ] ;
108+ const out = [ [ [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ] ] ;
109109
110- const shapes : [ Array < number > , Array < number > , Array < number > , Array < number > , Array < number > ] = [ [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 ] , [ 1 , 2 , 2 , 2 ] ] ;
110+ const shapes : [ Array < number > , Array < number > , Array < number > , Array < number > , Array < number > ] = [ [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] , [ 1 , 1 , 2 , 2 ] ] ;
111111
112112 bquaternary4d ( ) ; // $ExpectError
113113 bquaternary4d ( [ x , y , z , w , out ] ) ; // $ExpectError
0 commit comments