@@ -149,18 +149,17 @@ class Definitions {
149
149
}
150
150
151
151
private def enterPolyMethod (cls : ClassSymbol , name : TermName , typeParamCount : Int ,
152
- resultTypeFn : PolyType => Type , flags : FlagSet = EmptyFlags ,
153
- bounds : TypeName => TypeBounds = _ => TypeBounds .empty) = {
152
+ resultTypeFn : PolyType => Type , flags : FlagSet = EmptyFlags ) = {
154
153
val tparamNames = PolyType .syntheticParamNames(typeParamCount)
155
- val tparamInfos = tparamNames map bounds
154
+ val tparamInfos = tparamNames map (_ => TypeBounds .empty)
156
155
val ptype = PolyType (tparamNames)(_ => tparamInfos, resultTypeFn)
157
156
enterMethod(cls, name, ptype, flags)
158
157
}
159
158
160
- private def enterT1ParameterlessMethod (cls : ClassSymbol , name : TermName , resultTypeFn : PolyType => Type , flags : FlagSet , bounds : TypeName => TypeBounds = _ => TypeBounds .empty ) =
159
+ private def enterT1ParameterlessMethod (cls : ClassSymbol , name : TermName , resultTypeFn : PolyType => Type , flags : FlagSet ) =
161
160
enterPolyMethod(cls, name, 1 , resultTypeFn, flags)
162
161
163
- private def enterT1EmptyParamsMethod (cls : ClassSymbol , name : TermName , resultTypeFn : PolyType => Type , flags : FlagSet , bounds : TypeName => TypeBounds = _ => TypeBounds .empty ) =
162
+ private def enterT1EmptyParamsMethod (cls : ClassSymbol , name : TermName , resultTypeFn : PolyType => Type , flags : FlagSet ) =
164
163
enterPolyMethod(cls, name, 1 , pt => MethodType (Nil , resultTypeFn(pt)), flags)
165
164
166
165
private def mkArityArray (name : String , arity : Int , countFrom : Int ): Array [TypeRef ] = {
@@ -927,7 +926,7 @@ class Definitions {
927
926
// ----- Initialization ---------------------------------------------------
928
927
929
928
/** Lists core classes that don't have underlying bytecode, but are synthesized on-the-fly in every reflection universe */
930
- private lazy val syntheticScalaClasses = List (
929
+ lazy val syntheticScalaClasses = List (
931
930
AnyClass ,
932
931
AnyRefAlias ,
933
932
RepeatedParamClass ,
@@ -944,7 +943,7 @@ class Definitions {
944
943
OpsPackageClass )
945
944
946
945
/** Lists core methods that don't have underlying bytecode, but are synthesized on-the-fly in every reflection universe */
947
- private lazy val syntheticCoreMethods = AnyMethods ++ ObjectMethods ++ List (String_+ , throwMethod)
946
+ lazy val syntheticCoreMethods = AnyMethods ++ ObjectMethods ++ List (String_+ , throwMethod)
948
947
949
948
lazy val reservedScalaClassNames : Set [Name ] = syntheticScalaClasses.map(_.name).toSet
950
949
0 commit comments