-
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.
Pretty-printing: show constraints on type parameters inside newtypes …
…and dependent types Summary: For unknown reasons, we don't look inside `newtype` arguments or dependent types when presenting bounds on generic parameters in pretty printed types. Unfortunately, this affects `supportdyn<_>` types such as function types under implicit pessimisation. Let's get rid of this filtering. Reviewed By: madgen Differential Revision: D63023172 fbshipit-source-id: f5ea603734cf13f84a22ca2d4f4fb59383427ce2
- Loading branch information
1 parent
812d981
commit 362a384
Showing
10 changed files
with
11 additions
and
18 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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
File "classname_usage.php", line 81, characters 3-15: | ||
string | ||
File "classname_usage.php", line 86, characters 3-16: | ||
classname<T> | ||
classname<T> where T as I | ||
File "classname_usage.php", line 88, characters 3-15: | ||
string | ||
No errors |
2 changes: 1 addition & 1 deletion
2
hphp/hack/test/typecheck/classname/classname_usage.php.imp_pess_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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
File "classname_usage.php", line 81, characters 3-15: | ||
~string | ||
File "classname_usage.php", line 86, characters 3-16: | ||
classname<T> | ||
classname<T> where T as I | ||
File "classname_usage.php", line 88, characters 3-15: | ||
~string | ||
No errors |
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
4 changes: 2 additions & 2 deletions
4
hphp/hack/test/typecheck/type_structure/type_structure_abstract.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
File "type_structure_abstract.php", line 10, characters 5-73: | ||
?classname<this::T> | ||
?classname<this::T> where this::T as P::T | ||
File "type_structure_abstract.php", line 17, characters 5-60: | ||
classname<this::T> | ||
classname<this::T> where this::T as C::T | ||
File "type_structure_abstract.php", line 24, characters 5-60: | ||
classname<IChild> | ||
No errors |
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
2 changes: 1 addition & 1 deletion
2
hphp/hack/test/typecheck/type_structure/typing_type_structure2.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
File "typing_type_structure2.php", line 13, characters 5-28: | ||
classname<this> | ||
classname<this> where this as C | ||
File "typing_type_structure2.php", line 14, characters 5-28: | ||
classname<Base> | ||
No errors |