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
Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
unused_awaitable15.php
blob
52c29aead3127a8a0c58879a9297079d9c5ac56f
1
<
?hh
// strict
2
3
async
function
f
():
Awaitable
<
?
float
> {
4
return
1.0
;
5
}
6
7
function
g
(): (
float
,
float
) {
8
$a
= (
float
)
f
();
9
$b
= (
float
)
f
();
10
return
tuple
(
$a
,
$b
);
11
}