Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / this_privacypolicybase2.php
blob8ffd542caa7002434b55aaa4f4738d9520a1eae9
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 abstract class Entish {
13 abstract protected static function getPrivacyPolicy(): PrivacyPolicyBase<this>;
16 abstract class PrivacyPolicyBase<T> {}
18 class MyEnt extends Entish {
19 protected static function getPrivacyPolicy(): PrivacyPolicyBase<this> {
20 return new MyEntPrivacyPolicy();
24 class MyEntPrivacyPolicy<T as MyEnt> extends PrivacyPolicyBase<T> {}