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 memoization of functions called with keyset arguments
[hiphop-php.git]
/
hphp
/
test
/
quick
/
trait_two_use_closure.php
blob
1b74b0b50b4947e1864ee20c615652a31ff22765
1
<
?php
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
();