diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-20 12:29:20 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-20 12:29:20 +0000 |
commit | f7f19a8883a957446d16de8ff3d5afc29fc5d9d0 (patch) | |
tree | db2035767339ec8b2dd092c4a6e1d37cf06d190f /src | |
parent | 341c62a27b84dbd00c7fa740ba9608e33c50bc74 (diff) | |
download | scala-f7f19a8883a957446d16de8ff3d5afc29fc5d9d0.tar.gz scala-f7f19a8883a957446d16de8ff3d5afc29fc5d9d0.tar.bz2 scala-f7f19a8883a957446d16de8ff3d5afc29fc5d9d0.zip |
Fixed a small bug in NSC that prevented compila...
Fixed a small bug in NSC that prevented compilation.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 0fd959e271..5e39319af1 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -113,7 +113,7 @@ trait Namers: Analyzer { } if (c.owner.isPackageClass) { currentRun.symSource(c) = context.unit.source.getFile(); - c.sourceFile = context.unit.source.getFile(); + c.asIntanceOf[ClassSymbol].sourceFile = context.unit.source.getFile(); } c } |