Skip to content

Commit 11420cf

Browse files
committed
Remove unnecessary changes.
1 parent 61306bd commit 11420cf

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,17 @@ class Definitions {
149149
}
150150

151151
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) = {
154153
val tparamNames = PolyType.syntheticParamNames(typeParamCount)
155-
val tparamInfos = tparamNames map bounds
154+
val tparamInfos = tparamNames map (_ => TypeBounds.empty)
156155
val ptype = PolyType(tparamNames)(_ => tparamInfos, resultTypeFn)
157156
enterMethod(cls, name, ptype, flags)
158157
}
159158

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) =
161160
enterPolyMethod(cls, name, 1, resultTypeFn, flags)
162161

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) =
164163
enterPolyMethod(cls, name, 1, pt => MethodType(Nil, resultTypeFn(pt)), flags)
165164

166165
private def mkArityArray(name: String, arity: Int, countFrom: Int): Array[TypeRef] = {
@@ -927,7 +926,7 @@ class Definitions {
927926
// ----- Initialization ---------------------------------------------------
928927

929928
/** 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(
931930
AnyClass,
932931
AnyRefAlias,
933932
RepeatedParamClass,
@@ -944,7 +943,7 @@ class Definitions {
944943
OpsPackageClass)
945944

946945
/** 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)
948947

949948
lazy val reservedScalaClassNames: Set[Name] = syntheticScalaClasses.map(_.name).toSet
950949

0 commit comments

Comments
 (0)