Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / trait_bad_pos.php
blobc90afb03fe4abac61a1253ed0a234398eb45a378
1 ////foo.php
2 <?hh // strict
3 class Foo {
4 public function f(int $x): void {}
7 ////treq_ext_foo.php
8 <?hh // strict
9 trait TReqExtFoo {
10 require extends Foo;
13 ////child.php
14 <?hh // strict
15 class Child extends Foo {
16 public function f(string $x): void {}
19 ////treq_ext_child.php
20 <?hh // strict
21 trait TReqExtChild {
22 require extends Child;
25 ////tboth_traits.php
26 <?hh // strict
27 trait TBothTraits {
28 use TReqExtChild;
29 use TReqExtFoo;