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
sync the repo
[hiphop-php.git]
/
hphp
/
test
/
quick
/
parse_type_not_typedef.php
blob
84ebc2a817be3eb44004c818c0277855de3d825d
1
<
?hh
2
3
// ok, 'type' is context sensitive
4
function
type
() :
mixed
{
5
echo
"Hi
\n
"
;
6
}
7
8
class
Foo
{
9
const
TYPE
=
'hi2'
;
10
}
11
12
type t
=
int
;
13
function
wat
(
t
$type
) :
mixed
{
14
echo
$type
.
"
\n
"
;
15
}
16
<<
__EntryPoint
>>
function
main
():
void
{
17
type
();
18
19
echo
Foo
::
TYPE
.
"
\n
"
;
20
21
wat
(
12
);
22
}