No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / new_bad_error_pos.php
blobcc4f557c5ec052c0debf6b5fe94872ec1d0423a2
1 //// file1.php
2 <?hh
3 function test<T as C>(
4 T $c,
5 A $a,
6 ): void {
7 $b = $c->b();
8 $_ = new $b($a);
10 //// file2.php
11 <?hh
12 interface A {}
13 final class B<Ta as A> {
14 public function __construct(Ta $a) {}
16 interface C {
17 abstract const type Ta as A;
18 public function b(): classname<B<this::Ta>>;