diff options
-rwxr-xr-x | sources/scala/tools/nsc/symtab/Definitions.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/scala/tools/nsc/symtab/Definitions.scala b/sources/scala/tools/nsc/symtab/Definitions.scala index 04606ce168..36d34f76f1 100755 --- a/sources/scala/tools/nsc/symtab/Definitions.scala +++ b/sources/scala/tools/nsc/symtab/Definitions.scala @@ -113,7 +113,7 @@ import Flags._; def isFunctionType(tp: Type): boolean = tp match { case TypeRef(_, sym, args) => ((args.length > 0) && (args.length - 1 <= MaxFunctionArity) && - (sym == FunctionClass(args.length - 1))) + (sym == FunctionClass(args.length - 1))) case _ => false } @@ -166,6 +166,10 @@ import Flags._; def BoxedUnit_UNIT = getMember(BoxedUnitModule, "UNIT"); var ObjectRefClass: Symbol = _; + // special attributes + var SerializableAttr: Type = _; + + def getModule(fullname: Name): Symbol = getModuleOrClass(fullname, true); @@ -406,6 +410,8 @@ import Flags._; BoxedUnitClass = getClass("scala.runtime.BoxedUnit"); BoxedUnitModule = getModule("scala.runtime.BoxedUnit"); ObjectRefClass = getClass("scala.runtime.ObjectRef"); + + SerializableAttr = getClass("scala.serializable").tpe; } } } |