Commit 8aa6889
committed
avoidCaptures: handle local types, not just terms
Not that the added test case still infers `Local` for the type of `a`
because avoidance doesn't handle type variables correctly and because
the nesting level checks are too coarse, this doesn't lead to an error
because the check for forward references in TreePickler is currently
disabled. All these issues are fixed in later commits of this PR.1 parent 4108960 commit 8aa6889
File tree
2 files changed
+13
-2
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4715 | 4715 | | |
4716 | 4716 | | |
4717 | 4717 | | |
4718 | | - | |
| 4718 | + | |
4719 | 4719 | | |
4720 | 4720 | | |
4721 | | - | |
| 4721 | + | |
4722 | 4722 | | |
4723 | 4723 | | |
4724 | 4724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments