Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / xhp_disallowed.php
blobb542493c9d422dbff88a97a868effa5b197ff119
1 <?hh
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the BSD-style license found in the
7 * LICENSE file in the "hack" directory of this source tree. An additional grant
8 * of patent rights can be found in the PATENTS file in the same directory.
12 class :div extends :blah {}
14 class Meh {
15 protected function foo(): Xhp {
16 return <div></div>;