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
not all calls invalidate fake members
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
fake_members
/
dont_invalidate_is_null.php
blob
6a890bc3e468a6465153b9e7b67e27dc39dfb9fc
1
<
?hh
// strict
2
3
class
A
{
4
public
?
int
$y
;
5
}
6
7
function
f
(
A
$x
,
?A
$y
):
void
{
8
if
(!
is_null
(
$x
->
y
) && !
is_null
(
$y
)) {
9
expect_nonnull
(
$x
->
y
);
10
}
11
}
12
13
function
expect_nonnull
(
nonnull
$x
):
void
{}