-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Augment decorators might not run if alias caused the type to be …
…resolved too early (#2603) Issue is that when resolving symbol in the meta types and member resolution when we resolve an alias or template instance we check the type. However this makes it that every referenced typed from there on has already been resolved by the time the augment decorator gets to do the binding. A fix for now is to have an option in the symnbol resolution to checkTemplateTypes or not. We do not check them during the binding phase but we do allow checking during the checking phase [#2600](#2600)
- Loading branch information
1 parent
553bfc4
commit 474dd12
Showing
3 changed files
with
114 additions
and
25 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@typespec/compiler/fix-augment-symbol-already-checked_2023-10-25-00-16.json
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@typespec/compiler", | ||
"comment": "Fix: Issue where referencing a template in an alias might cause augment decorators to not be applied on types referenced in the aliased type.", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@typespec/compiler" | ||
} |
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