repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
throw_exception.php
blob
8ef4fd914f03c38322ee39ee8ac85c9b8b075c08
1
<
?hh
// strict
2
3
class
MyException
extends
Exception
{
4
public function
__construct
() {
5
parent
::
__construct
(
'dummy'
);
6
}
7
}
8
9
function
f
():
void
{
10
throw new
MyException
();
11
}
12
13
function
g
():
void
{
14
throw new
Exception
(
'msg'
);
15
}