Correctly instantiate generic attributes for XHP
[hiphop-php.git] / hphp / hack / test / typecheck / xhp / generic_attr1.php
blob2e22eb900288df30c8bd082ac6de370a2215c6dc
1 <?hh // strict
3 class :my-xhp<T> {
4 attribute Vector<T> foo @required;
7 function test(): int {
8 $x = <my-xhp foo={Vector {"1"}} />;
10 return $x->:foo[0];