-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Use `BoundedDynamic(t)` as the meet of `Dynamic` and `t`, instead of just `Dynamic`. This gives more info with types-on-hover. Record type-checking becomes slightly more lenient with underspecced functions, because extracting a field from a record of type `BoundedDynamic(#rec{})` produces a value of type `BoundedDynamic(field_ty)`. See tests for details about newly accepted code. Reviewed By: ilya-klyuchnikov Differential Revision: D57624187 fbshipit-source-id: 5e9bad73405058fd7e6aad93415cc8830f3f7082
- Loading branch information
1 parent
9f90e9d
commit 9362404
Showing
3 changed files
with
10 additions
and
16 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