forked from facebook/hhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This is a test repo that we use from our skycastle workflow. Just added a few more files containing new modules constructs Reviewed By: malanka Differential Revision: D37852740 fbshipit-source-id: 0d9c7ada03810ffa59c757fdfde45f91cfeb05a5
- Loading branch information
1 parent
999edc2
commit 0381be5
Showing
8 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?hh // strict | ||
|
||
class Attribute implements HH\ModuleAttribute { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?hh // strict | ||
<<file: __EnableUnstableFeatures('modules')>> | ||
|
||
module bar; | ||
|
||
internal class CI { | ||
internal int $x = 0; | ||
static internal int $y = 0; | ||
} | ||
|
||
abstract class X { | ||
abstract internal function foo(): CI; | ||
} | ||
|
||
class Y { | ||
internal function foo(): CI { | ||
return new CI(); | ||
} | ||
|
||
public function foobar(): void { | ||
} | ||
|
||
static internal function barfoo(): void { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?hh // strict | ||
<<file: __EnableUnstableFeatures('modules')>> | ||
|
||
module foo; | ||
|
||
internal class ClassFoo { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?hh // strict | ||
<<file: __EnableUnstableFeatures('modules')>> | ||
|
||
module fooNS; | ||
|
||
class ClassFooNS { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?hh // strict | ||
<<file: __EnableUnstableFeatures('modules')>> | ||
|
||
module foo; | ||
|
||
newtype N = int; | ||
|
||
internal newtype NI = int; | ||
|
||
trait T { | ||
} | ||
|
||
internal trait TI { | ||
} | ||
|
||
interface I { | ||
} | ||
|
||
internal interface II { | ||
} | ||
|
||
enum E: int { | ||
Red = 3; | ||
} | ||
|
||
internal enum EI: int { | ||
Red = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?hh // strict | ||
<<file: __EnableUnstableFeatures('modules')>> | ||
|
||
|
||
<<Attribute>> | ||
new module foo {} | ||
new module bar {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?hh // strict | ||
<<file: __EnableUnstableFeatures('modules')>> | ||
|
||
// namespace don't apply to modules | ||
namespace SomeNS; | ||
|
||
new module fooNS {} |