New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / abstract_defs.php
blob13f979f9c6f0a6a8fc2b153e75584adf73d135ff
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 trait FooTrait {
13 abstract public function abstractFunc();
14 final public function doSomething() {
15 return $this->abstractFunc();
19 abstract class Base {
20 final public function abstractFunc() {
21 return 4;
25 class Child extends Base {
26 use FooTrait;