Skip to content

Commit

Permalink
Merge pull request #8849 from lrytz/t11927
Browse files Browse the repository at this point in the history
  • Loading branch information
lrytz committed May 8, 2020
2 parents 85ec3c5 + 7580a83 commit 4b4eb1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/reflect/scala/reflect/internal/Symbols.scala
Expand Up @@ -2569,7 +2569,11 @@ trait Symbols extends api.Symbols { self: SymbolTable =>
// return actual source code.) So sourceFile has classfiles filtered out.
final def sourceFile: AbstractFile = {
val file = associatedFile
if ((file eq NoAbstractFile) || (file.path endsWith ".class")) null else file
if (
(file eq NoAbstractFile) || {
val path = file.path
path.endsWith(".class") || path.endsWith(".sig")
}) null else file
}

/** Overridden in ModuleSymbols to delegate to the module class.
Expand Down

0 comments on commit 4b4eb1a

Please sign in to comment.