New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / switch_fallthrough9.php
blob16d4387b26e2d32667a157659f77d5a7f1c10b0f
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 function foo(): void {}
13 function bar(): void {}
15 function hack_error(): void {
16 switch (1) {
17 case 1:
18 // UNSAFE
19 foo();
20 // FALLTHROUGH
21 case 2:
22 bar();
23 break;