-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade dict type into schema type (#1350)
* feat: upgrade dict type into schema type in node_ty_map if expr's expected type is schema Signed-off-by: he1pa <[email protected]> * chore: recover accidentally deleted code * remove resolver.ctx.ty.ctx.expected_ty, use resolver.ctx.config_expr_context instead Signed-off-by: he1pa <[email protected]> * use schema symbol stack to replace current schema symbol Signed-off-by: he1pa <[email protected]> * handle union type * add a option emit_error in check_type() to not report an error when trying to upgrade dict into schema Signed-off-by: he1pa <[email protected]> * chore: remove unused code Signed-off-by: he1pa <[email protected]> * rebase main * remove unused code Signed-off-by: he1pa <[email protected]> --------- Signed-off-by: he1pa <[email protected]>
- Loading branch information
Showing
16 changed files
with
359 additions
and
91 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
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 |
---|---|---|
|
@@ -98,6 +98,7 @@ impl<'ctx> Resolver<'ctx> { | |
expected_ty, | ||
index_signature_node.get_span_pos(), | ||
None, | ||
true, | ||
); | ||
} | ||
} | ||
|
Oops, something went wrong.