sync the repo
[hiphop-php.git] / hphp / hack / test / typecheck / xhp_parse.php
blob4feca209fa8d3e1a2fc66b519fd37c6095f1369e
1 <?hh
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 function foo(): void {
13 $z = <div> this is a' " # /// try </div>;
14 $z = <div><h><p/> this is a' " # /// try </h></div>;
15 $x = <div x="test" y ={'yea'}> ' "</div>;
16 $y = <div/>;
17 $z = <div><!-- an xhp comment </div>--></div>;
20 class :div extends XHPTest {
21 attribute string x, string y;
23 class :h extends XHPTest implements XHPChild {}
24 class :p extends XHPTest implements XHPChild {}