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
Move experimental/symbolizer/{tool,test} to debugging/symbolizer
[hiphop-php.git]
/
hphp
/
test
/
slow
/
new_object_expression
/
783.php
blob
d3ea876ea649bae4763d6b215831d265fb2eb1f1
1
<
?hh
2
3
class
X
{
4
function
__toString
()[] :
mixed
{
5
return
'hello'
;
6
}
7
}
8
function
f
() :
mixed
{
9
return
'bar'
;
10
}
11
function
test
() :
mixed
{
12
$a
=
'foo'
;
13
for
(
$i
=
0
;
$i
<
10
;
$i
++
) {
14
$a
.=
new
X
() .
f
();
15
}
16
return
$a
;
17
}
18
19
<<
__EntryPoint
>>
20
function
main_783
() :
mixed
{
21
var_dump
(
test
());
22
}