summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiles Sabin <miles@milessabin.com>2009-05-21 16:49:48 +0000
committerMiles Sabin <miles@milessabin.com>2009-05-21 16:49:48 +0000
commit36a2c0d43b2b5e9ed8e7233649d7c22e5555086c (patch)
tree4583c7d42e25c45fda400f003b01a4b4cb6e7fe7 /src
parenteb4eac963d9067bf38aced06021d6ea2d62db48e (diff)
downloadscala-36a2c0d43b2b5e9ed8e7233649d7c22e5555086c.tar.gz
scala-36a2c0d43b2b5e9ed8e7233649d7c22e5555086c.tar.bz2
scala-36a2c0d43b2b5e9ed8e7233649d7c22e5555086c.zip
Make sure the symbol for the implementation cla...
Make sure the symbol for the implementation class of a trait has an associated source file.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/transform/AddInterfaces.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
index 88c83d86ad..0d94658118 100644
--- a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
+++ b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
@@ -80,6 +80,7 @@ abstract class AddInterfaces extends InfoTransform {
if (impl == NoSymbol) {
impl = iface.cloneSymbolImpl(iface.owner)
impl.name = implName
+ impl.sourceFile = iface.sourceFile
if (iface.owner.isClass)
iface.owner.info.decls enter impl
}