Fix getDeclarationModifierFlagsFromSymbolEx for synthetic properties - #63932
Fix getDeclarationModifierFlagsFromSymbolEx for synthetic properties#63932Anders Hejlsberg (ahejlsberg) wants to merge 2 commits into
getDeclarationModifierFlagsFromSymbolEx for synthetic properties#63932Conversation
|
TypeScript Bot (@typescript-bot) test it |
There was a problem hiding this comment.
Pull request overview
Fixes synthetic intersection property accessibility so public constituents are not incorrectly treated as protected.
Changes:
- Prioritizes aggregate accessibility flags for synthetic symbols.
- Adds regression coverage and symbol/type baselines for #63749.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
tsc/internal/checker/utilities.go |
Changes synthetic modifier resolution order. |
tsc/testdata/tests/cases/compiler/syntheticProtectedProperties.ts |
Adds regression scenarios. |
tsc/testdata/baselines/reference/compiler/syntheticProtectedProperties.types |
Records inferred types. |
tsc/testdata/baselines/reference/compiler/syntheticProtectedProperties.symbols |
Records resolved symbols. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| } | ||
|
|
||
| func getDeclarationModifierFlagsFromSymbolEx(s *ast.Symbol, isWrite bool) ast.ModifierFlags { | ||
| if s.CheckFlags&ast.CheckFlagsSynthetic != 0 { |
|
Hey Anders Hejlsberg (@ahejlsberg), it looks like the DT test run failed. Please check the log for more details. |
|
Anders Hejlsberg (@ahejlsberg) Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Anders Hejlsberg (@ahejlsberg) Here are the results of running the user tests with tsc comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Everything looks good! |
|
Anders Hejlsberg (@ahejlsberg) Here are the results of running the top 400 repos with tsc comparing Everything looks good! |
Fixes #63749.