-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ts2.1: handle boolean types correctly (#314)
Booleans are represented as a union of true|false, but they also have the boolean flag set so our existing code that handled unions wasn't firing. If we just treat them as unions, everything works, including more complex cases (like boolean|number => true|false|number, without the boolean flag set). More work on #295. With this change, the remaining failures in tests are mostly whitespace.
- Loading branch information
Showing
1 changed file
with
26 additions
and
10 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