Fix some `-Wunused-but-set-variable` issues in hphp
[hiphop-php.git] / hphp / hack / test / typecheck / abstract_defs.php
blob255dc81a322ee6fa43d6c53f4a6c71c588977ee6
1 <?hh
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 trait FooTrait {
13 abstract public function abstractFunc(): int;
14 final public function doSomething(): int {
15 return $this->abstractFunc();
19 abstract class Base {
20 final public function abstractFunc(): int {
21 return 4;
25 class Child extends Base {
26 use FooTrait;