Commit fe2098c
authored
Resolve bug inferring context type from generic functions in type parameters (#1589)
* Resolve bug inferring context type from generic functions in type parameters
* remove previous fix
* Fix false positive due to incorrect inference of generic function contraint1 parent b40b43c commit fe2098cCopy full SHA for fe2098c
2 files changed
+21Lines changed: 21 additions & 0 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/transformation/utils
- test/unit/functions/validation
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/transformation/utils/function-context.ts
Copy file name to clipboardExpand all lines: src/transformation/utils/function-context.ts+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
140 | 140 | |
141 | 141 | |
142 | 142 | |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
143 | 147 | |
144 | 148 | |
145 | 149 | |
|
Collapse file
test/unit/functions/validation/validFunctionAssignments.spec.ts
Copy file name to clipboardExpand all lines: test/unit/functions/validation/validFunctionAssignments.spec.ts+17Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
248 | 248 | |
249 | 249 | |
250 | 250 | |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
0 commit comments