Add module declaration type checking
[hiphop-php.git] / hphp / hack / test / fanout / modules / module-make-internal.php
blob0207f14fe09a41b4b6836b873ef7c2070af961b1
1 //// base-a-decl.php
2 <?hh
3 <<file: __EnableUnstableFeatures('modules')>>
5 module A {}
7 //// changed-a-decl.php
8 <?hh
9 <<file: __EnableUnstableFeatures('modules')>>
11 module A {}
13 //// base-foo-defn.php
14 <?hh
15 <<file: __EnableUnstableFeatures('modules'), __Module('A')>>
17 class FooA {}
19 //// changed-foo-defn.php
20 <?hh
21 <<file: __EnableUnstableFeatures('modules'), __Module('A')>>
23 <<__Internal>>
24 class FooA {}
25 //// base-foo-use.php
26 <?hh
28 function make_fooa(): FooA {
29 return new FooA();
32 function make_secret_fooa(): mixed {
33 return new FooA();
37 //// changed-foo-use.php
38 <?hh
40 function make_fooa(): FooA {
41 return new FooA();
44 function make_secret_fooa(): mixed {
45 return new FooA();