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
/
anonymous_shape2.php
blob
97036d82a17b0692d1f1d481584e4cb1a694e5af
1
<
?hh
//strict
2
3
/**
4
* Anonymous shape return type
5
*/
6
7
function
f
():
shape
(
'x'
=>
int
) {
8
return
shape
(
'x'
=>
4
);
9
}
10
11
function
test
(
12
):
shape
(
13
'y'
=>
int
,
14
...
15
) {
16
return
f
();
17
}