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 5178072 commit 944c08bCopy full SHA for 944c08b
compiler/src/dotty/tools/dotc/ast/NavigateAST.scala
@@ -79,7 +79,9 @@ object NavigateAST {
79
case _ => path
80
}
81
if ((path1 ne path) &&
82
- ((bestFit eq path) || bestFit.head.span.contains(path1.head.span)))
+ ((bestFit eq path) ||
83
+ bestFit.head.span != path1.head.span &&
84
+ bestFit.head.span.contains(path1.head.span)))
85
bestFit = path1
86
87
bestFit
0 commit comments