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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
crossUnitRefs.php
blob
805b24f8f7cd47540df5274240514aa4a4c37070
1
<
?hh
2
3
include_once
"crossUnitRefsInc.php"
;
4
5
6
class
A
{
7
public
$foo
;
8
public function
f
() {
9
inOtherUnit
(
$this
->
foo
,
array
());
10
}
11
}
12
13
function
main
() {
14
$a
=
new
A
();
15
$a
->
foo
=
12
;
16
$a
->
f
();
17
18
inOtherUnit
(
1
,
2
);
19
}
20
21
main
();
22