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
/
noreturn_usage.php
blob
c7b125b2d7937773ba5aa0af2db2d03e4de5a6f0
1
<
?hh
// strict
2
3
function
n
():
noreturn
{
4
throw new
Exception
(
'nope'
);
5
}
6
7
function
v
():
void
{}
8
9
function
test
():
void
{
10
list
(
$x
,
$y
) =
tuple
(
n
(),
v
());
11
}