Commit 1a6a714
committed
Fix incorrect "self reference in refinement is deprecated" warning
The check used to disallow any reference of the form `X.this.type` even though
`X` is never the refinement class.
This change mirrors the check done with `ThisType` a couple of line below.1 parent 68c4c13 commit 1a6a714
File tree
3 files changed
+8
-1
lines changed- compiler/src/dotty/tools/dotc/typer
- tests
- neg-custom-args/fatal-warnings
- pos
3 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments