repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove array(...) in typecheck tests that result in test differences
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
akempty
/
akempty_promotion_1.php
blob
10f61f1894faefa74824c63dabf33fd19416f1f2
1
<
?hh
//strict
2
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
);
11
}
12
13
function
f
(
array
<
int
>
$_
):
void
{}