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
Updating submodules
[hiphop-php.git]
/
hphp
/
test
/
slow
/
expression_method_call.php
blob
39fce85c65c3265c3c1b6e8da7307ac5beef6015
1
<
?hh
2
3
4
<<
__EntryPoint
>>
5
function
main_expression_method_call
() {
6
var_dump
(
7
(
true
? Vector
{
1
} :
Vector
{
2
})->
add
(
3
)
8
);
9
var_dump
(
10
(
false
?
:
Map
{
1
=>
'a'
})->
add
(
Pair
{
2
,
'b'
})
11
);
12
var_dump
(
13
(
Set
{
1
}
|
>
$$
->
add
(
2
))->
add
(
4
)
14
);
15
}