No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / static_method_call_classname_with_generics.php
blob547608ee23a44ed01325cfdb336d3f6b90576bbc
1 <?hh // strict
2 // Copyright 2004-present Facebook. All Rights Reserved.
4 interface I {
5 public function f(): void;
8 final class C<T as I> {
9 public static function g(T $x): void {
10 $x->f();
14 function test(int $x): void {
15 $c = C::class;
16 $c::g($x);