Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / continue_naming_terminal.php
blob811f95a46ef2af0325c001014df1283b24f5ef14
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 foo(array<int> $arr): void {
13 foreach ($arr as $a) {
14 if ($a == 1) {
15 $b = 1;
16 } else {
17 continue;
19 echo $b;