summaryrefslogtreecommitdiff
path: root/sources/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2005-12-08 15:15:56 +0000
committerMartin Odersky <odersky@gmail.com>2005-12-08 15:15:56 +0000
commit2d91f011f2ba54bb3ac733f3dcf4a518ea56d50e (patch)
tree956f4cf7f0745cf6916ad67354fcb7c42659969d /sources/scala/tools/nsc/typechecker/RefChecks.scala
parente0d7aeaa9d32afce117d366b179e7a8205586f2e (diff)
downloadscala-2d91f011f2ba54bb3ac733f3dcf4a518ea56d50e.tar.gz
scala-2d91f011f2ba54bb3ac733f3dcf4a518ea56d50e.tar.bz2
scala-2d91f011f2ba54bb3ac733f3dcf4a518ea56d50e.zip
*** empty log message ***
Diffstat (limited to 'sources/scala/tools/nsc/typechecker/RefChecks.scala')
-rwxr-xr-xsources/scala/tools/nsc/typechecker/RefChecks.scala13
1 files changed, 7 insertions, 6 deletions
diff --git a/sources/scala/tools/nsc/typechecker/RefChecks.scala b/sources/scala/tools/nsc/typechecker/RefChecks.scala
index b27804d646..8fc0c0c7cf 100755
--- a/sources/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/sources/scala/tools/nsc/typechecker/RefChecks.scala
@@ -50,7 +50,7 @@ abstract class RefChecks extends InfoTransform {
// var m$: T = null; or, if class member: local var m$: T = _;
def newModuleVarDef(accessor: Symbol) = {
val mvar = accessor.owner.newVariable(accessor.pos, nme.moduleVarName(accessor.name))
- setInfo accessor.tpe.finalResultType;
+ .setInfo(accessor.tpe.finalResultType);
if (mvar.owner.isClass) {
mvar setFlag (PRIVATE | LOCAL | SYNTHETIC);
mvar.owner.info.decls.enter(mvar);
@@ -105,14 +105,15 @@ abstract class RefChecks extends InfoTransform {
val self = clazz.thisType;
- def infoString(sym: Symbol) =
+ def infoString(sym: Symbol) = (
sym.toString() +
(if (sym.owner == clazz) ""
else (sym.locationString +
(if (sym.isAliasType) ", which equals " + self.memberInfo(sym)
else if (sym.isAbstractType) " with bounds " + self.memberInfo(sym)
else if (sym.isTerm) " of type " + self.memberInfo(sym)
- else "")));
+ else "")))
+ );
/* Check that all conditions for overriding `other' by `member' are met. */
def checkOverride(clazz: Symbol, member: Symbol, other: Symbol): unit = {
@@ -434,9 +435,9 @@ abstract class RefChecks extends InfoTransform {
case ModuleDef(mods, name, impl) =>
val sym = tree.symbol;
val cdef = ClassDef(mods | MODULE, name, List(), EmptyTree, impl)
- setPos tree.pos
- setSymbol sym.moduleClass
- setType NoType;
+ .setPos(tree.pos)
+ .setSymbol(sym.moduleClass)
+ .setType(NoType);
if (sym.isStatic) List(transform(cdef))
else {
val vdef =