No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / function_hint_with_variadic_parameter_not_covariant_2.php
blobcd54d085681e62ade547e02d1cfcf0356fc6b7a3
1 <?hh //strict
3 class A {}
5 class B extends A {}
7 function variadic_B(B ...$y): void {}
9 function hint_variadic_A((function(A...): void) $f): void {}
11 function test(): void {
12 hint_variadic_A(fun('variadic_B'));