Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / generic_partial.php
blob75ddf0bab9aa6b74cbf86a21e751929ef9dc8fb8
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 /* HH_FIXME[4101] */
13 function f1(Map $m) {
14 f1($m);
15 f2($m);
16 f($m);
19 function f2(Map<string, int> $m) {
20 f1($m);
21 f2($m);
22 f($m);
25 function f(KeyedTraversable<string, int> $m) {