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
Enforce modularity boundaries for classes
[hiphop-php.git]
/
hphp
/
test
/
slow
/
dce-catch.php
blob
ac464cb75c71c74b18636d3445d7076e71e661a8
1
<
?hh
2
3
class
C
{}
4
5
function
f
(
$x
) {
6
try
{
7
return
$x
->
missing
;
8
}
catch
(
Exception
$e
) {
9
return null
;
10
}
11
}
12
13
<<
__EntryPoint
>>
14
function
main
() {
15
$x
=
dict
[
'a'
=>
'b'
,
'c'
=>
f
(
new
C
())];
16
var_dump
(
$x
[
'a'
]);
17
}