File tree 1 file changed +1
-4
lines changed
compiler/src/dotty/tools/dotc/sbt
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -138,15 +138,12 @@ class ExtractDependencies extends Phase {
138
138
139
139
val depFile = dep.to.associatedFile
140
140
if (depFile != null ) {
141
- def depIsSameSource =
142
- depFile.absolutePath == sourceFile.file.absolutePath
143
-
144
141
// Cannot ignore inheritance relationship coming from the same source (see sbt/zinc#417)
145
142
def allowLocal = dep.context == DependencyByInheritance || dep.context == LocalDependencyByInheritance
146
143
if (depFile.extension == " class" ) {
147
144
// Dependency is external -- source is undefined
148
145
processExternalDependency(depFile, dep.to.binaryClassName)
149
- else if (allowLocal || ! depIsSameSource /* old: depFile.file != sourceFile.file */ ) {
146
+ } else if (allowLocal || depFile != sourceFile.file) {
150
147
// We cannot ignore dependencies coming from the same source file because
151
148
// the dependency info needs to propagate. See source-dependencies/trait-trait-211.
152
149
val toClassName = classNameAsString(dep.to)
You can’t perform that action at this time.
0 commit comments