@@ -43,7 +43,7 @@ function fcn( x: number, y: number, z: number ): number {
4343 const shapes : [ Array < number > , Array < number > , Array < number > ] = [ [ 1 , 1 , 1 , 2 , 2 ] , [ 1 , 1 , 1 , 2 , 2 ] , [ 1 , 1 , 1 , 2 , 2 ] ] ;
4444
4545 bternary5d ( [ x , y , z , out ] , shapes , fcn ) ; // $ExpectType void
46- bternary5d ( [ x [ 0 ] [ 0 ] [ 0 ] [ 0 ] , y , z ] , [ [ shapes [ 0 ] [ 4 ] ] , shapes [ 1 ] , shapes [ 2 ] ] , fcn ) ; // $ExpectType void
46+ bternary5d ( [ x [ 0 ] [ 0 ] [ 0 ] [ 0 ] , y , z ] , [ [ shapes [ 0 ] [ 4 ] ] , shapes [ 1 ] , shapes [ 2 ] ] , fcn ) ; // $ExpectType void
4747}
4848
4949// The compiler throws an error if the function is provided a first argument which is not an array of nested arrays...
@@ -89,7 +89,7 @@ function fcn( x: number, y: number, z: number ): number {
8989 bternary5d ( [ x , y , z , out ] , shapes , true ) ; // $ExpectError
9090 bternary5d ( [ x , y , z , out ] , shapes , false ) ; // $ExpectError
9191 bternary5d ( [ x , y , z , out ] , shapes , null ) ; // $ExpectError
92- bternary5d ( [ x , y , z , out ] , shapes , [ '1' ] ) ; // $ExpectError
92+ bternary5d ( [ x , y , z , out ] , shapes , [ '1' ] ) ; // $ExpectError
9393 bternary5d ( [ x , y , z , out ] , shapes , { } ) ; // $ExpectError
9494}
9595
0 commit comments