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
/
xhp_attr_16.php
blob
ea73ce36939107864cf7e5abf3ddf07fc2547af8
1
<
?hh
// strict
2
3
class
Superclass
{}
4
class
Subclass
extends
Superclass
{}
5
6
class
:
foo
{
7
attribute
8
Superclass mysuperclass
,
9
Subclass mysubclass
;
10
}
11
12
function
main
():
void
{
13
$x
= <
foo mysuperclass
={
new
Superclass
()}
mysubclass
={
new
Subclass
()} />;
14
$y
= <
foo mysuperclass
={
new
Subclass
()} />;
15
}