Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / xhp_parse.php
blobdf97b56256a94d75813ac956e7b38e6759d66eb4
1 <?hh // partial
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 $x = <div> dfaf </div>;
14 function foo(): void {
15 $z = <div> this is a' " # /// try </div>;
16 $z = <div><h><p/> this is a' " # /// try </h></div>;
17 $x = <div x="test" y ={'yea'}> ' "</div>;
18 $y = <div/>;
19 $z = <div><!-- an xhp comment </div>--></div>;
22 class :div {
23 attribute string x, string y;
25 class :h implements XHPChild {}
26 class :p implements XHPChild {}