sync the repo
[hiphop-php.git] / hphp / hack / test / typecheck / trait_bad_pos.php
blobed8d0e6f4f0d7cdfd8e54b26c4d493ea6b61616e
1 ////foo.php
2 <?hh
3 class Foo {
4 public function f(int $x): void {}
7 ////treq_ext_foo.php
8 <?hh
9 trait TReqExtFoo {
10 require extends Foo;
13 ////child.php
14 <?hh
15 class Child extends Foo {
16 public function f(string $x): void {}
19 ////treq_ext_child.php
20 <?hh
21 trait TReqExtChild {
22 require extends Child;
25 ////tboth_traits.php
26 <?hh
27 trait TBothTraits {
28 use TReqExtChild;
29 use TReqExtFoo;
31 public function g(): void {
32 $this->f(0);
36 class A extends Child {
37 use TBothTraits;