Skip to content

Commit fb8ac6c

Browse files
Update compiler/src/dotty/tools/dotc/util/SourcePosition.scala
Co-Authored-By: Anatolii Kmetiuk <[email protected]>
1 parent bb8642e commit fb8ac6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/util/SourcePosition.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extends interfaces.SourcePosition with Showable {
7070
def nonInlined: SourcePosition = {
7171
val om = outermost
7272
def rec(self: SourcePosition): SourcePosition =
73-
if outermost.contains(self) then self else rec(self.outer)
73+
if om.contains(self) then self else rec(self.outer)
7474
rec(this)
7575
}
7676

@@ -86,4 +86,3 @@ extends interfaces.SourcePosition with Showable {
8686
override def toString: String = "?"
8787
override def withOuter(outer: SourcePosition): SourcePosition = outer
8888
}
89-

0 commit comments

Comments
 (0)