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
Turn FFP errors upto 11; report everything
[hiphop-php.git]
/
hphp
/
test
/
slow
/
nullsafe
/
nullsafe-call-2.php
blob
182e01fe7b59c5ea656eadc7e94a697d979fbb67
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
():
void
{
12
$c
=
new
C
();
13
var_dump
(
test
(
$c
));
14
var_dump
(
test
(
null
));
15
}
16
main
();