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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
array_map_explicitly_typed_arity.php
blob
335675c592bedc5e8c379b1593db4918af2a991c
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
function
f
():
int
{
5
$x
=
array_map
<
int
,
int
>(
function
(
$x
,
$y
) {
return
$x
+
$y
; },
vec
[
1
,
2
],
vec
[
2
,
3
]);
6
return
$x
[
0
];
7
}