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
Refactor the parsing and processing of configuration options ... just a bit ...
[hiphop-php.git]
/
hphp
/
test
/
slow
/
nullsafe
/
nullsafe-call-2.php
blob
307830beea23e83932346099741eff1eae23df44
1
<
?hh
// strict
2
class
C
{
3
public function
foo
():
D
{
4
return new
D
();
5
}
6
}
7
class
D
{}
8
function
test
(
?C
$c
):
D
{
9
return
$c
?
->
foo
();
10
}
11
function
main
() {
12
$c
=
new
C
();
13
var_dump
(
test
(
$c
));
14
var_dump
(
test
(
null
));
15
}
16
main
();