Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / if1.php
blob6506c46c3e8777407c1a7ce025b5baec7257fd9b
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 test(): int {
13 $x = 0;
14 if(true) {
15 throw new Exception('');
17 else {
18 throw new Exception('');
20 return $x;