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
Check for void/noreturn in conditionals
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
void_usage_5.php
blob
39ed1d6137e6054bc02595a8d7ef797cf52f81be
1
<
?hh
// strict
2
3
function
test
():
void
{
4
$arr
=
array_map
(
5
$x
==> {
6
if
(
false
) {
7
return
$x
;
8
}
9
},
10
array
(
'test'
),
11
);
12
hh_show
(
$arr
);
13
foreach
(
$arr
as
$x
) {
14
if
(
$x
) {
15
}
16
}
17
}