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_4.php
blob
6852048999cef9aebad5f9ad407741f5d34bcb62
1
<
?hh
//strict
2
3
function
foos
():
array
<
string
> {
4
return array
();
5
}
6
function
bars2
():
array
<
string
,
int
> {
7
return array
();
8
}
9
10
function
test_a
():
array
<
mixed
> {
11
$a
=
foos
();
12
$a
+
=
bars2
();
13
return
$a
;
14
}