Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / typing_fail_inherit2.php
blob4ac048af997648f236174def4ca8fc46f67b7764
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 interface Foo {
13 public function bar() : void;
16 class Baz implements Foo {
17 public static function bar() : void { } // ERROR
18 public function bar() : void { }