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
Fix bug in hack codegen for sets
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
lambda
/
lambda_tany.php
blob
7ed489c6daff623204d163f3961c15ed01f4df3c
1
<
?hh
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
B
{
5
public function
foo
():
void
{}
6
}
7
class
C
extends
B
{
8
public function
foo
():
void
{}
9
}
10
11
function
test_tany
(
/* TAny */
$y
):
void
{
12
$f
=
$x
==>
$x
->
foo
();
13
$f
(
$y
);
14
$f
(
new
C
());
15
}
16
17
function
break_it
():
void
{
18
test_tany
(
new
B
());
19
}