diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2006-10-27 13:28:53 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2006-10-27 13:28:53 +0000 |
commit | 3554798475156367b3bd21fad657a158e77b3e9e (patch) | |
tree | 1cb8a396479ce8ec3b05ee2c3945239d8a74e1d9 /src | |
parent | a2912abc2679f5de571f9ffebf59c9e68c077eb3 (diff) | |
download | scala-3554798475156367b3bd21fad657a158e77b3e9e.tar.gz scala-3554798475156367b3bd21fad657a158e77b3e9e.tar.bz2 scala-3554798475156367b3bd21fad657a158e77b3e9e.zip |
Fixed embarrassing bug which broke the build.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala b/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala index 36f9cb7657..8be7d250a5 100644 --- a/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala +++ b/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala @@ -174,12 +174,13 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT var protAcc = clazz.info.decl(accName) val hasArgs = sym.tpe.paramTypes != Nil if (protAcc == NoSymbol) { + val resTpe = tree.tpe protAcc = clazz.newMethod(tree.pos, nme.protName(sym.originalName)) .setInfo(MethodType(List(clazz.typeOfThis), if (hasArgs) - MethodType(sym.tpe.paramTypes, sym.tpe.resultType) + MethodType(sym.tpe.paramTypes, resTpe.resultType /*sym.tpe.resultType*/) else - sym.tpe.resultType)) + resTpe.resultType /*sym.tpe.resultType*/)) clazz.info.decls.enter(protAcc); val code = DefDef(protAcc, vparamss => vparamss.tail.foldRight(Select(gen.mkAttributedRef(vparamss.head.head), sym): Tree) ( |