File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1329,10 +1329,11 @@ class Definitions {
1329
1329
1330
1330
@ tu lazy val TupleType : Array [TypeRef | Null ] = mkArityArray(" scala.Tuple" , MaxTupleArity , 1 )
1331
1331
1332
- def isSpecializedTuple (cls : Symbol ): Boolean =
1332
+ def isSpecializedTuple (cls : Symbol )( using Context ) : Boolean =
1333
1333
TupleSpecializedClasses .exists(tupleCls => cls.name.isSpecializedNameOf(tupleCls.name))
1334
1334
1335
- def SpecialisedTuple (base : Symbol , args : List [Type ]): Symbol = base.owner.requiredClass(base.name.specializedName(args))
1335
+ def SpecialisedTuple (base : Symbol , args : List [Type ])(using Context ): Symbol =
1336
+ base.owner.requiredClass(base.name.specializedName(args))
1336
1337
1337
1338
private class FunType (prefix : String ):
1338
1339
private var classRefs : Array [TypeRef | Null ] = new Array (22 )
@@ -1634,7 +1635,6 @@ class Definitions {
1634
1635
case List (x) => Tuple1SpecializedParamClasses ().contains(x.classSymbol)
1635
1636
case List (x, y) => Tuple2SpecializedParamClasses ().contains(x.classSymbol) && Tuple2SpecializedParamClasses ().contains(y.classSymbol)
1636
1637
case _ => false
1637
- && base.owner.denot.info.member(base.name.specializedName(args)).disambiguate(_.isClass).exists
1638
1638
1639
1639
def isSpecializableFunction (cls : ClassSymbol , paramTypes : List [Type ], retType : Type )(using Context ): Boolean =
1640
1640
paramTypes.length <= 2
You can’t perform that action at this time.
0 commit comments