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
Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
array_plus_sub_2.php
blob
8f924f5209f68dd936facdee0b6af2b9afdfeef7
1
<
?hh
//strict
2
3
function
foos
():
array
<
string
> {
4
return array
();
5
}
6
function
bars
():
array
<
int
> {
7
return array
();
8
}
9
10
function
test_a
():
array
<
num
> {
11
$a
=
foos
();
12
$a
+
=
bars
();
13
return
$a
;
14
}