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
Generate Terr instead of Tobject during invalid refinement
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
refinements
/
refine_non_existent.php
blob
39ccc497c0adddeafdad85ae9cebeef48a36ea67
1
<
?hh
2
3
function
takes_int
(
int
$_
):
void
{}
4
5
function
f
(
mixed
$m
):
void
{
6
if
(
$m
is C
) {
// C does not exist.
7
takes_int
(
$m
);
// Terr works in place of any type.
8
}
9
}