Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / test_to_sort_exn.php
blobd0ce35719045a46ea571e79c6833c5e7feb6c66b
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 class A extends \Exception {
13 public function f(): void {}
16 function test(): void {
17 try {
18 } catch (A $e) {
19 $e->f();