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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
add_union_any.php
blob
4c7a3fb0f333fdd427c95a363d45209775c6c43c
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
/* HH_FIXME[4030] */
5
function
makeAny
() {
6
return
3
;
7
}
8
9
function
expectInt
(
int
$x
):
void
{ }
10
11
function
testit
(
bool
$f
,
int
$z
):
void
{
12
if
(
$f
)
$z
=
makeAny
();
13
$w
=
$z
+
1
;
14
expectInt
(
$w
);
15
}