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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
shape_modified7.php
blob
cf4785c72722942c2a10467df56a97ceadcc7aca
1
<
?hh
// partial
2
3
type s
=
shape
(
'x'
=>
?
int
);
4
5
function
test
(
bool
$b
,
s
$s
):
int
{
6
7
if
(
$b
) {
8
$x
=
5
;
9
}
else
{
10
$x
=
4
;
11
}
12
13
if
(
$b
) {
14
$s
[
'x'
] =
$x
;
15
}
16
17
return
$x
;
18
}