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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
trailing_comma.php
blob
ceae04df672e25152a6576db2b38aa20dabfdcfc
1
<
?hh
2
function
id
(
$x
,) {
return
$x
;}
3
var_dump
(
id
(
1
,));
4
5
function
multiline
(
6
$x
,
7
$y
,
8
) {
return
$x
+
$y
; }
9
var_dump
(
multiline
(
10
1
,
11
2
,
12
));
13
14
$x
=
3
;
15
$y
=
4
;
16
$c
=
function
()
use
(
17
$x
,
18
$y
,
19
) {
return
$x
+
$y
; };
20
var_dump
(
$c
());