Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / switch_fallthrough4.php
blob75d28e8253f7a0cafe00238b4ebd1cfd4afbeb4a
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 do_stuff(): void {}
14 function f(): void {
15 switch (1) {
16 case 1:
17 break;
18 case 2:
19 do_stuff();
20 default:
21 break;