Commit b7e67fa
committed
fix(checker): narrow accessibility check for typeof parameters in type queries
Refined the accessibility check for parameter symbols to only apply when they are part of a TypeQuery. This prevents parameter identifiers used as computed property names in type printing from being incorrectly treated as accessible unique-symbol-like keys.1 parent c000090 commit b7e67fa
File tree
2 files changed
+8
-5
lines changed- src/compiler
- tests/baselines/reference
2 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6160 | 6160 | | |
6161 | 6161 | | |
6162 | 6162 | | |
6163 | | - | |
| 6163 | + | |
| 6164 | + | |
| 6165 | + | |
| 6166 | + | |
6164 | 6167 | | |
6165 | 6168 | | |
6166 | 6169 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments