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.
1 parent bb8642e commit fb8ac6cCopy full SHA for fb8ac6c
compiler/src/dotty/tools/dotc/util/SourcePosition.scala
@@ -70,7 +70,7 @@ extends interfaces.SourcePosition with Showable {
70
def nonInlined: SourcePosition = {
71
val om = outermost
72
def rec(self: SourcePosition): SourcePosition =
73
- if outermost.contains(self) then self else rec(self.outer)
+ if om.contains(self) then self else rec(self.outer)
74
rec(this)
75
}
76
@@ -86,4 +86,3 @@ extends interfaces.SourcePosition with Showable {
86
override def toString: String = "?"
87
override def withOuter(outer: SourcePosition): SourcePosition = outer
88
89
-
0 commit comments