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
/
aktuple
/
list_error.php
blob
cd209106cf3b63922b9900075a2234568d93be49
1
<
?hh
//strict
2
3
/* Tuple-like arrays can be used with list(...) statement - usage that should
4
* report errors. */
5
function
test
():
void
{
6
$a
=
varray
[
4
,
'aaa'
];
7
8
list
(
$int
,
$string
) =
$a
;
9
take_string
(
$int
);
10
}
11
12
function
take_string
(
string
$_
):
void
{}