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
/
variadic_args5.php
blob
ca22aaab305af628515ad4732954421b8e80a2bb
1
<
?hh
2
3
// Due to inheriting from an interface, this code fatals in HHVM.
4
5
interface
I1
{
6
public function
meth
(...
$args
):
void
;
7
}
8
9
class
C1
implements
I1
{
10
public function
meth
(...
$args
):
void
{}
11
}
12
13
class
C2
extends
C1
{
14
public function
meth
(
$x
=
null
, ...):
void
{}
15
}