File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,11 @@ class Compiler {
146
146
147
147
def newRun (implicit ctx : Context ): Run = {
148
148
reset()
149
- new Run (this , ctx)
149
+ val rctx =
150
+ if ctx.settings.Ysemanticdb .value
151
+ ctx.addMode(Mode .ReadPositions )
152
+ else
153
+ ctx
154
+ new Run (this , rctx)
150
155
}
151
156
}
Original file line number Diff line number Diff line change 3
3
1 |class Bar2 extends Bar1 with Two[Foo] // error
4
4
| ^
5
5
| Name clash between inherited members:
6
- | def concat(suffix: Int): X in trait One and
7
- | def concat: [Dummy](suffix: Int): Y in trait Two
6
+ | def concat(suffix: Int): X in trait One at line 4 and
7
+ | def concat: [Dummy](suffix: Int): Y in trait Two at line 8
8
8
| have the same type after erasure.
You can’t perform that action at this time.
0 commit comments