Commit 9d89be4
Fix resolved type of
When looking for the innermost container, only add type parameters
that are defined outside of the container. For example:
fn Foo(A: type) type {
return struct {
fn bar(B: type) @this() {
...
}
}
}
Only `A` should be added to the set of type parameters for `Foo(A)`.@This() in a generic function1 parent 8d6d7da commit 9d89be4
File tree
3 files changed
+66
-2
lines changed- src
- tests/lsp_features
3 files changed
+66
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5695 | 5695 | | |
5696 | 5696 | | |
5697 | 5697 | | |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
5698 | 5701 | | |
5699 | 5702 | | |
5700 | 5703 | | |
5701 | 5704 | | |
5702 | 5705 | | |
5703 | | - | |
| 5706 | + | |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
| 5710 | + | |
| 5711 | + | |
| 5712 | + | |
5704 | 5713 | | |
5705 | 5714 | | |
5706 | 5715 | | |
| |||
5712 | 5721 | | |
5713 | 5722 | | |
5714 | 5723 | | |
5715 | | - | |
| 5724 | + | |
5716 | 5725 | | |
5717 | 5726 | | |
5718 | 5727 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4322 | 4322 | | |
4323 | 4323 | | |
4324 | 4324 | | |
| 4325 | + | |
| 4326 | + | |
| 4327 | + | |
| 4328 | + | |
| 4329 | + | |
| 4330 | + | |
| 4331 | + | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
4325 | 4341 | | |
4326 | 4342 | | |
4327 | 4343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2086 | 2086 | | |
2087 | 2087 | | |
2088 | 2088 | | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
2089 | 2128 | | |
2090 | 2129 | | |
2091 | 2130 | | |
| |||
0 commit comments