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 literals from quick tests
[hiphop-php.git]
/
hphp
/
test
/
quick
/
on_list_assign.php
blob
fea4b373178cbd0cbac0f6bb960be28742b8a042
1
<
?hh
2
3
class
A
{
4
public function
foo
() { }
5
public
$bar0
=
0
;
6
public
$bar1
=
1
;
7
}
8
<<
__EntryPoint
>>
function
main
():
void
{
9
$a
=
new
A
;
10
$b
=
darray
[
0
=>
'A'
,
1
=>
'B'
];
11
list
(
$a
->
bar0
,
$a
->
bar1
) =
$b
;
12
list
(
$a
->
foo
(),
$a
->
bar1
) =
$b
;
13
}