Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git] / hphp / hack / test / typecheck / xhp_attr_16.php
blobea73ce36939107864cf7e5abf3ddf07fc2547af8
1 <?hh // strict
3 class Superclass {}
4 class Subclass extends Superclass {}
6 class :foo {
7 attribute
8 Superclass mysuperclass,
9 Subclass mysubclass;
12 function main(): void {
13 $x = <foo mysuperclass={new Superclass()} mysubclass={new Subclass()} />;
14 $y = <foo mysuperclass={new Subclass()} />;