Make Hack type checker produce error when async method is not awaitable
[hiphop-php.git] / hphp / hack / test / emitter / type-const.php
blob3b31351b785aa392f35d22196a96e770df0b9bf0
1 <?hh // strict
3 class Foo {
4 const type T = int;
5 public static function f(self::T $x): int {
6 return $x + 1;
10 function test(): void {
11 var_dump(Foo::f(10));