-
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.
Ignore package error in function pointers to static functions
Summary: SymbolRefs does not follow function pointers to static functions. To match it, we ignore package errors on those as well. Reviewed By: DavidSnider Differential Revision: D62771086 fbshipit-source-id: 6866756a6672aef6eb97551bf8908947d7de1420
- Loading branch information
1 parent
b519a89
commit 38d7856
Showing
3 changed files
with
22 additions
and
1 deletion.
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
14 changes: 14 additions & 0 deletions
14
hphp/hack/test/package_v2/package_access/cross_package_function_pointers.php
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,14 @@ | ||
//// foo.php | ||
<?hh | ||
// package pkg1 (does not include pkg2) | ||
function main(): void { | ||
C::foo<>; | ||
} | ||
|
||
//// bar.php | ||
<?hh | ||
// package pkg2 | ||
<<file: __PackageOverride('pkg2')>> | ||
class C { | ||
public static function foo(): void {} | ||
} |
1 change: 1 addition & 0 deletions
1
hphp/hack/test/package_v2/package_access/cross_package_function_pointers.php.exp
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 |