Remove array(...) in typecheck tests that result in test differences
[hiphop-php.git] / hphp / hack / test / typecheck / akempty / akempty_promotion_1.php
blob10f61f1894faefa74824c63dabf33fd19416f1f2
1 <?hh //strict
3 /**
4 * Test if the inner value type of AKvarray is correctly inferred
5 */
6 function test(): void {
7 $a = varray[];
8 $a[] = 'aaa';
9 // should error, because it's an array (used like a vector) containing strings
10 f($a);
13 function f(array<int> $_): void {}