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
New inference: improved error message for unresolved type
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
noreturn_typehint_basic.php
blob
a8afc86145523b0c3a357e6c8e9776673f561a62
1
<
?hh
// strict
2
3
function
correct
():
noreturn
{
4
throw new
Exception
(
'not returning here'
);
5
}
6
7
async
function
meh
():
Awaitable
<
int
> {
8
// UNSAFE
9
}
10
11
async
function
generic
():
Awaitable
<
noreturn
> {
12
await
meh
();
13
throw new
Exception
(
'not returning here'
);
14
}