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