We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeError
1 parent 2040fb2 commit 26da0c8Copy full SHA for 26da0c8
compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala
@@ -16,7 +16,7 @@ object ErrorReporting {
16
import tpd._
17
18
def errorTree(tree: untpd.Tree, msg: => Message)(implicit ctx: Context): tpd.Tree =
19
- tree withType errorType(msg, tree.pos)
+ tree withType errorType(msg, tree.pos.focus)
20
21
def errorType(msg: => Message, pos: Position)(implicit ctx: Context): ErrorType = {
22
ctx.error(msg, pos)
0 commit comments