-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We were "faking" a `TypeSet` as part of the return type of `e.shape` to allow using `$infer` on `e.shape` expressions, but it turns out that caused the recent change to allow setting properties on a shape to a `TypeSet` as long as it agrees with the cardinality of the pointer to break. There are some lingering issues here that we should clean up, such as making the cardinality of `$infer<typeof someShape>` something reasonable rather than trying to infer it from the shape since that will depend on it's actual usage. In practice, most people want the `Cardinality.ONE` version (so, without `null` and not an array) so perhaps we can change this in a break version in the future.
- Loading branch information
1 parent
c63404d
commit 936f952
Showing
4 changed files
with
95 additions
and
20 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
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