represent calls to `unsafe_cast` as TAST `Hole`s
[hiphop-php.git] / hphp / hack / test / holes / call_generic.php
blob6a4d7afa63c686ae501bdeb0322fdb9216b64573
1 <?hh
3 function generic_bounded<T as num>(T $x, T $y): void {}
5 function call_generic(int $x, string $y): void {
6 /* HH_FIXME[4323] */
7 generic_bounded($x, $y);
10 function call_generic_cast(int $x, string $y): void {
11 /* HH_FIXME[4417] */
12 generic_bounded($x, unsafe_cast<string,float>($y));