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
Handle this typehints
[hiphop-php.git]
/
hphp
/
test
/
quick
/
closure_class.php
blob
4966ae78c367e2d1762e9dbed5c930b9787cf9ec
1
<
?hh
2
3
trait A
{
4
public function
b
() {
5
return function
() {
6
return array
(
7
__CLASS__
,
8
get_class
(
$this
)
9
);
10
};
11
}
12
}
13
14
class
C
{
15
use
A
;
16
public function
d
() {
17
return function
() {
18
return array
(
19
__CLASS__
,
20
get_class
(
$this
)
21
);
22
};
23
}
24
}
25
26
$c
=
new
C
;
27
$b
=
$c
->
b
();
28
var_dump
(
$b
());
29
$d
=
$c
->
d
();
30
var_dump
(
$d
());