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
Updating submodules
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
shape_idx_generic2.php
blob
c127adc96e322151675bbf812627d3b74323d5e1
1
<
?hh
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
C
<
T
as
shape
(
'x'
=>
?
int
, ...)> {
5
public function
test
(
T
$s
):
int
{
6
return
Shapes
::
idx
(
$s
,
'x'
,
0
);
7
}
8
}