represent calls to `unsafe_cast` as TAST `Hole`s
[hiphop-php.git] / hphp / hack / test / holes / call_set.php
blobdd5980179a7ac6e15fb938c1c6fa26009754a50f
1 <?hh
3 class TestSet{
4 public function h(Set<int> $h): void {}
7 function h(Set<int> $h): void {}
9 function call_set(
10 Set<string> $h,
11 ): void {
12 /* HH_FIXME[4110] */
13 h($h);
15 $foo = new TestSet();
17 /* HH_FIXME[4110] */
18 $foo->h($h);
21 function call_set_cast(
22 Set<string> $h,
23 ): void {
24 /* HH_FIXME[4417] */
25 h(unsafe_cast<Set<string>,Set<int>>($h));
27 $foo = new TestSet();
29 /* HH_FIXME[4417] */
30 $foo->h(unsafe_cast<Set<string>,Set<int>>($h));