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
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
xhp_reserved_keywords.php
blob
afc39c95aedc1acbe6ab8f9ccaf91c5fe74c95e3
1
<
?hh
// partial
2
/**
3
* Copyright (c) 2014, Facebook, Inc.
4
* All rights reserved.
5
*
6
* This source code is licensed under the MIT license found in the
7
* LICENSE file in the "hack" directory of this source tree.
8
*
9
*
10
*/
11
12
class
:
meh
{
13
attribute
14
string
if
,
15
string
else
,
16
string
function
,
17
string
true
,
18
string
false
,
19
string
for
,
20
string
while
,
21
string
return
,
22
string
as
,
23
string
break
,
24
string
case
,
25
string
continue
,
26
string
null
,
27
string
class
,
28
string
trait
,
29
string
extends
,
30
string
implements
,
31
string
const
,
32
string
private
,
33
string
public
,
34
string
protected
,
35
string
static
,
36
string
new
,
37
string
foreach
,
38
string
list
,
39
string
switch
,
40
string
interface
,
41
string
throw
,
42
string
do
,
43
string
use
,
44
string
try
,
45
string
catch
,
46
string
default
,
47
string
instanceof
,
48
string
attribute
,
49
string
enum
,
50
string
abstract
,
51
string
final
,
52
string
yield
,
53
string
children
,
54
string
category
,
55
string
clone
,
56
string
__construct
,
57
string
parent
,
58
string
self
,
59
string
require_once
,
60
string
echo
,
61
string
print
,
62
string
type
,
63
string
newtype
,
64
string
async
,
65
string
await
;
66
}
67
68
function
foo
(): :
meh
{
69
$r
= <
meh
70
if
=
"hello"
71
else
=
"hello"
72
function
=
"hello"
73
true
=
"hello"
74
false
=
"hello"
75
for
=
"hello"
76
while
=
"hello"
77
return
=
"hello"
78
as
=
"hello"
79
break
=
"hello"
80
case
=
"hello"
81
continue
=
"hello"
82
null
=
"hello"
83
class
=
"hello"
84
trait
=
"hello"
85
extends
=
"hello"
86
implements
=
"hello"
87
const
=
"hello"
88
private
=
"hello"
89
public
=
"hello"
90
protected
=
"hello"
91
static
=
"hello"
92
new
=
"hello"
93
foreach
=
"hello"
94
list
=
"hello"
95
switch
=
"hello"
96
interface
=
"hello"
97
throw
=
"hello"
98
do
=
"hello"
99
use
=
"hello"
100
try
=
"hello"
101
catch
=
"hello"
102
default
=
"hello"
103
instanceof
=
"hello"
104
attribute
=
"hello"
105
enum
=
"hello"
106
abstract
=
"hello"
107
final
=
"hello"
108
yield
=
"hello"
109
children
=
"hello"
110
category
=
"hello"
111
clone
=
"hello"
112
__construct
=
"hello"
113
parent
=
"hello"
114
self
=
"hello"
115
require_once
=
"hello"
116
echo
=
"hello"
117
print
=
"hello"
118
type
=
"hello"
119
newtype
=
"hello"
120
async
=
"async"
121
await
=
"await"
122
/>;
123
return
$r
;
124
}