No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / abstract_implement7.php
blob407caf1033c8525e31a23bc07f7e3901ecb24317
1 <?hh // strict
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 // Allow delayed implementation for abstract classes
14 interface IFace {
15 public function foo(): int;
18 // multiple layers
19 abstract class AClass implements IFace {}
21 abstract class BClass extends AClass {}
22 abstract class CClass extends BClass {}
23 class DClass extends CClass {
24 public function foo(): int {
25 return 0;