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
Make Hack type checker produce error when async method is not awaitable
[hiphop-php.git]
/
hphp
/
hack
/
test
/
find_refs
/
class_const.php
blob
19b885edcbf854c6d9f9ab086b27717b19be3ebb
1
<
?hh
2
3
class
C
{
4
const
int
foo
=
3
;
5
public static
?
string
$foo
;
6
public static function
foo
() {}
7
8
public function
test
() {
9
self
::
foo
;
10
$this
::
foo
;
11
C
::
foo
;
12
static
::
foo
;
13
}
14
}
15
16
class
D
extends
C
{
17
public function
test
() {
18
self
::
foo
;
19
$this
::
foo
;
20
C
::
foo
;
21
static
::
foo
;
22
parent
::
foo
;
23
}
24
}
25
26
type E
=
C
;
27
newtype F
=
C
;
28
29
function
test
(
C
$c
,
D
$d
,
E
$e
,
F
$f
) {
30
$c
::
foo
;
31
$d
::
foo
;
32
$e
::
foo
;
33
$f
::
foo
;
34
C
::
foo
;
35
D
::
foo
;
36
37
$c
::
$foo
;
38
$c
::
foo
();
39
}