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
represent calls to `unsafe_cast` as TAST `Hole`s
[hiphop-php.git]
/
hphp
/
hack
/
test
/
holes
/
call_set.php
blob
dd5980179a7ac6e15fb938c1c6fa26009754a50f
1
<
?hh
2
3
class
TestSet
{
4
public function
h
(
Set
<
int
>
$h
):
void
{}
5
}
6
7
function
h
(
Set
<
int
>
$h
):
void
{}
8
9
function
call_set
(
10
Set
<
string
>
$h
,
11
):
void
{
12
/* HH_FIXME[4110] */
13
h
(
$h
);
14
15
$foo
=
new
TestSet
();
16
17
/* HH_FIXME[4110] */
18
$foo
->
h
(
$h
);
19
}
20
21
function
call_set_cast
(
22
Set
<
string
>
$h
,
23
):
void
{
24
/* HH_FIXME[4417] */
25
h
(
unsafe_cast
<
Set
<
string
>,
Set
<
int
>>(
$h
));
26
27
$foo
=
new
TestSet
();
28
29
/* HH_FIXME[4417] */
30
$foo
->
h
(
unsafe_cast
<
Set
<
string
>,
Set
<
int
>>(
$h
));
31
}