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_3.php
blob
a41b68ab1aa950faa871dddef1037cb75e0b8ff3
1
<
?hh
// strict
2
3
function
n
():
noreturn
{
4
throw new
Exception
(
'nope'
);
5
}
6
7
function
test
():
void
{
8
while
(
n
()) {
9
}
10
}