No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / typehole / T76155254.php
blob43b17e5efea4481ff00680f87630c7d528efa3c1
1 <?hh
2 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
4 <<__ConsistentConstruct>>
5 class Hgoldstein {}
7 abstract class HgoldsteinChild extends Hgoldstein {}
9 final class HgoldsteinGrandChild extends HgoldsteinChild {}
11 function make_hgoldstein(classname<Hgoldstein> $cls): void {
12 $_ = new $cls();
15 <<__EntryPoint>>
16 function hgoldstein_main(): void {
17 make_hgoldstein(HgoldsteinChild::class);