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
/
trait_two_use_closure.php
blob
6664769133d194acb5325dfc28e1780434b0a111
1
<
?hh
2
3
trait A
{
4
function
b
() {
5
$c
=
function
() {
6
return
'd'
;
7
};
8
var_dump
(
$c
);
9
return
$c
();
10
}
11
}
12
13
class
E
{
use
A
; }
14
class
F
{
use
A
; }
15
16
function
main
() {
17
var_dump
((
new
E
)->
b
());
18
var_dump
((
new
F
)->
b
());
19
}
20
21
main
();