diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Definitions.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Definitions.scala b/src/compiler/scala/tools/nsc/symtab/Definitions.scala index 900775c5d3..5ae53ef3d8 100644 --- a/src/compiler/scala/tools/nsc/symtab/Definitions.scala +++ b/src/compiler/scala/tools/nsc/symtab/Definitions.scala @@ -115,7 +115,7 @@ trait Definitions { lazy val PredefModule: Symbol = getModule("scala.Predef") def Predef_classOf = getMember(PredefModule, nme.classOf) def Predef_classOfType(classType: Type): Type = - if (settings.Xgenerics.value && !phase.erasedTypes) + if (!ClassClass.unsafeTypeParams.isEmpty && !phase.erasedTypes) appliedType(ClassClass.tpe, List(classType)) else ClassClass.tpe def Predef_identity = getMember(PredefModule, nme.identity) |