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
/
parse_type_not_typedef.php
blob
0a0606e0189d3c5a9b4e35fa728a5d1487b15177
1
<
?hh
2
3
function
type
() {
// ok, 'type' is context sensitive
4
echo
"Hi
\n
"
;
5
}
6
type
();
7
8
class
Foo
{
9
const
TYPE
=
'hi2'
;
10
}
11
12
echo
Foo
::
TYPE
.
"
\n
"
;
13
14
type t
=
int
;
15
function
wat
(
t
$type
) {
16
echo
$type
.
"
\n
"
;
17
}
18
wat
(
12
);