Add declarations for internal keyword in direct decl and legacy parsers
[hiphop-php.git] / hphp / hack / test / typecheck / modules / module_static_prop.php
blob7a79d8e51c93ee301876c7547373de55a035797f
1 //// modules.php
2 <?hh
3 <<file:__EnableUnstableFeatures('modules')>>
5 module A {}
6 module B {}
7 //// A.php
8 <?hh
9 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
11 <<file:__EnableUnstableFeatures('modules'), __Module('A')>>
13 class A {
14 <<__Internal>>
15 public static int $x = 0;
18 function a(): void {
19 A::$x = 1;
23 //// B.php
24 <?hh
25 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
27 <<file:__EnableUnstableFeatures('modules'), __Module('B')>>
29 function b(): void {
30 A::$x = 1;
33 //// no-module.php
34 <?hh
35 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
37 function none(): void {
38 A::$x = 1;