-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow internal for the __dynamicallycallable attribute
Summary: Internal methods are actually "public" from a runtime perspective, so it makes sense to allow __DynamicallyCallable on them. Reviewed By: oulgen Differential Revision: D40868413 fbshipit-source-id: 0c67991594cfc27d3aba9af09f81f9a74cfe2918
- Loading branch information
1 parent
f2cd60a
commit 235cd7a
Showing
3 changed files
with
36 additions
and
17 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,13 @@ | ||
//// def.php | ||
<?hh | ||
<<file:__EnableUnstableFeatures("modules")>> | ||
new module foo {} | ||
//// use.php | ||
<?hh | ||
<<file:__EnableUnstableFeatures("modules")>> | ||
module foo; | ||
|
||
public class Foo { | ||
<<__DynamicallyCallable>> | ||
internal function foo(): 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 @@ | ||
No errors |