diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-10-07 10:44:23 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-10-07 10:44:23 +0000 |
commit | 4f2d5e48086568a905b1eb318700ef4fb6dad1df (patch) | |
tree | 35becc0481ef9b60daa8cb65f72f81d073fa8ae0 | |
parent | 41865ed00183a049d6fbaebc97897eebd2956d68 (diff) | |
download | scala-4f2d5e48086568a905b1eb318700ef4fb6dad1df.tar.gz scala-4f2d5e48086568a905b1eb318700ef4fb6dad1df.tar.bz2 scala-4f2d5e48086568a905b1eb318700ef4fb6dad1df.zip |
- tweaked the warning for ClassfileAnnotation's...
- tweaked the warning for ClassfileAnnotation's so it does not apply
to ClassfileAnnotation itself - commented out a debug print string in
typedAssign
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index c608617ce0..f3a54e716a 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -1013,7 +1013,8 @@ trait Typers { self: Analyzer => val impl1 = newTyper(context.make(cdef.impl, clazz, scopeFor(cdef.impl))) .typedTemplate(cdef.impl, parentTypes(cdef.impl)) val impl2 = addSyntheticMethods(impl1, clazz, context) - if (clazz isNonBottomSubClass ClassfileAnnotationClass) + if ((clazz != ClassfileAnnotationClass) && + (clazz isNonBottomSubClass ClassfileAnnotationClass)) unit.warning (cdef.pos, "implementation restriction: subclassing Classfile does not\n"+ "make your annotation visible at runtime. If that is what\n"+ @@ -2125,7 +2126,7 @@ trait Typers { self: Analyzer => copy.Assign(tree, lhs1, checkDead(rhs1)) setType UnitClass.tpe } else { if (!lhs1.tpe.isError) { - println(lhs1+" = "+rhs) + //println(lhs1+" = "+rhs)//DEBUG error(tree.pos, "assignment to non-variable ") } setError(tree) |