Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / override_attr_07.php
blob24c0b59b0bb4f07a88641b4ef9b12a8d16b4fdf6
1 <?hh // partial
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 abstract class A {
13 abstract protected function foo();
16 abstract class B extends A {
18 <<__Override>>
19 public function foo(): void {}
21 abstract protected function bar();
24 class C extends B {
26 <<__Override>>
27 public function bar(): void {}