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
/
shapes_cc_13.php
blob
7f2b4b1d303be9a80934a6f8861fe40408e6fc4b
1
<
?hh
// strict
2
3
/* Invalid construction: shape field names may not be empty */
4
5
function
test
():
void
{
6
$x
=
shape
(
''
=>
1
,
'field2'
=>
true
);
7
}