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
sync the repo
[hiphop-php.git]
/
hphp
/
test
/
slow
/
new_object_expression
/
784.php
blob
c7c024b3cebd8bd7cde4692796268b1fab2c7d59
1
<
?hh
2
3
<<
__DynamicallyConstructible
>>
4
class
X
{
5
}
6
class
Y
{
7
}
8
function
test
(
$x
) :
mixed
{
9
return new
$x
(
$x
=
'Y'
);
10
}
11
12
<<
__EntryPoint
>>
13
function
main_784
() :
mixed
{
14
var_dump
(
test
(
'X'
));
15
}