Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / typedef15.php
blob0f8b7464d9f3bac51a4927073d1bb6d649b47b59
1 <?hh
3 type Metadata = Map<int, int>;
4 type HandlerTable = Map<int, Metadata>;
6 class Router {
7 protected static Vector<Pair<HandlerTable, int>> $routes = Vector {};
9 public function f(): Pair<HandlerTable, int> {
10 $r = self::$routes[1];
11 return $r;