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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
null_check_inside_try_catch.php
blob
956bcc857bb105ef990eed22e47057b4bbe36f6e
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
function
expect
<
T
>(
T
$_
):
void
{}
5
6
function
test
(
?
int
$x
):
void
{
7
try
{
8
if
(
$x
===
null
) {
9
return
;
10
}
11
}
catch
(
Exception
$_
) {
12
expect
<
int
>(
$x
);
13
}
14
}