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
/
emitter
/
type-const.php
blob
3b31351b785aa392f35d22196a96e770df0b9bf0
1
<
?hh
// strict
2
3
class
Foo
{
4
const
type T
=
int
;
5
public static function
f
(
self
::
T
$x
):
int
{
6
return
$x
+
1
;
7
}
8
}
9
10
function
test
():
void
{
11
var_dump
(
Foo
::
f
(
10
));
12
}