Removing debug output that slipped into main compiler and broke the build.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25572 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
odersky 2011-08-26 20:03:30 +00:00
parent f7e4f28b23
commit a61c42caea
3 changed files with 4 additions and 4 deletions

View File

@ -673,10 +673,10 @@ trait Definitions extends reflect.api.StandardDefinitions {
var i = 0
var j = fullname.pos('.', i)
while (j < fullname.length) {
val sym0 = sym //DEBUG
// val sym0 = sym //DEBUG
sym = sym.info.member(fullname.subName(i, j))
if (sym == NoSymbol)
println("no member "+fullname.subName(i, j)+" found in "+sym0+sym0.info.getClass+" "+sym0.info.typeSymbol.info.getClass)
// println("no member "+fullname.subName(i, j)+" found in "+sym0+sym0.info.getClass+" "+sym0.info.typeSymbol.info.getClass)
i = j + 1
j = fullname.pos('.', i)
}
@ -684,7 +684,7 @@ trait Definitions extends reflect.api.StandardDefinitions {
if (module) sym.info.member(fullname.subName(i, j)).suchThat(_ hasFlag MODULE)
else sym.info.member(fullname.subName(i, j).toTypeName)
if (result == NoSymbol) {
println("no member "+fullname.subName(i, j)+" found in "+sym+" "+module+" "+sym.info.getClass)
// println("no member "+fullname.subName(i, j)+" found in "+sym+" "+module+" "+sym.info.getClass)
if (settings.debug.value)
{ log(sym.info); log(sym.info.members) }//debug
throw new MissingRequirementError((if (module) "object " else "class ") + fullname)

View File

@ -436,6 +436,7 @@ abstract class LiftCode extends Transform with TypingTransformers {
else
traverse(arg)
}
/** The rhs of a closure represents escape. */
case Function(vparams, body) =>
vparams foreach traverse

View File

@ -3779,7 +3779,6 @@ trait Typers extends Modes with Adaptations {
while (defSym == NoSymbol && cx != NoContext) {
currentRun.compileSourceFor(context.asInstanceOf[analyzer.Context], name)
pre = cx.enclClass.prefix
if (name.toString == "Console") println("looking in "+cx.owner)
defEntry = cx.scope.lookupEntry(name)
if ((defEntry ne null) && qualifies(defEntry.sym)) {
defSym = defEntry.sym