New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / switch_inconsistent_types.php
blobfe3e504f51a17f5a4e4d0529bbf90f95c0cb0143
1 <?hh // partial
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 function f(): int {
13 switch (1) {
14 case 1:
15 $x = false;
16 break;
17 default:
18 $x = 8;
19 break;
22 return $x;