Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / trait_require_param1.php
blob08095e16028cc5bba19a46a4f4eef7c2cbf28655
1 <?hh // partial
3 abstract class Foo<T> {
4 /* HH_FIXME[4110] */
5 protected function bar(): T {
9 trait Tbaz {
10 require extends Foo<int>;
12 protected function f(): void {
13 $int = $this->bar();
14 f_takes_int($int);
18 function f_takes_int(int $f): void {}