-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: As noted in #49 some of these union tests became ineffective when we closed the union-annotations soundness hole by widening all non-optional union annotations to dynamic. The tests are passing but for the wrong reason; instead of testing union `can_assign_from`, they are effectively now testing that anything can be assigned to dynamic. Remove the bad tests and replace them with a single unit-test style test of `UnionType.can_assign_from` which covers the cases which (for now) aren't testable via real code. Reviewed By: DinoV Differential Revision: D31451895 fbshipit-source-id: f888f1b
- Loading branch information
1 parent
80c949e
commit 439b330
Showing
1 changed file
with
14 additions
and
47 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