Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / throw_exception.php
blob8ef4fd914f03c38322ee39ee8ac85c9b8b075c08
1 <?hh // strict
3 class MyException extends Exception {
4 public function __construct() {
5 parent::__construct('dummy');
9 function f(): void {
10 throw new MyException();
13 function g(): void {
14 throw new Exception('msg');