Commit 271aaf0
committed
Fix #3348: use a new typeState in inferView
`inferImplicit` has an useful invariant that the constraint doesn't
change in the case of implicit resolution failure. However, this
invariant may not hold if completions are triggered during implicit resolution.
By create a new typeState for inferView, we ensure that the useful
invariant holds in such cases.1 parent 174444d commit 271aaf0
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2224 | 2224 | | |
2225 | 2225 | | |
2226 | 2226 | | |
2227 | | - | |
2228 | | - | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
2229 | 2230 | | |
| 2231 | + | |
2230 | 2232 | | |
2231 | 2233 | | |
2232 | 2234 | | |
| |||
2236 | 2238 | | |
2237 | 2239 | | |
2238 | 2240 | | |
| 2241 | + | |
2239 | 2242 | | |
2240 | 2243 | | |
2241 | 2244 | | |
| |||
0 commit comments