@@ -652,7 +652,7 @@ trait Implicits { self: Typer =>
652
652
type SpecialHandlers = List [(ClassSymbol , SpecialHandler )]
653
653
654
654
lazy val synthesizedClassTag : SpecialHandler =
655
- (formal : Type , span : Span ) => implicit ( ctx : Context ) => formal.argInfos match {
655
+ (formal, span) => implicit ctx => formal.argInfos match {
656
656
case arg :: Nil =>
657
657
fullyDefinedType(arg, " ClassTag argument" , span) match {
658
658
case defn.ArrayOf (elemTp) =>
@@ -678,7 +678,7 @@ trait Implicits { self: Typer =>
678
678
* `T` is deeply dealiassed to avoid references to local type aliases.
679
679
*/
680
680
lazy val synthesizedTypeTag : SpecialHandler =
681
- (formal : Type , span : Span ) => implicit ( ctx : Context ) => {
681
+ (formal, span) => implicit ctx => {
682
682
def quotedType (t : Type ) = {
683
683
if (StagingContext .level == 0 )
684
684
ctx.compilationUnit.needsStaging = true // We will need to run ReifyQuotes
@@ -696,12 +696,12 @@ trait Implicits { self: Typer =>
696
696
}
697
697
698
698
lazy val synthesizedTastyContext : SpecialHandler =
699
- (formal : Type , span : Span ) => implicit ( ctx : Context ) =>
699
+ (formal, span) => implicit ctx =>
700
700
if (ctx.inInlineMethod || enclosingInlineds.nonEmpty) ref(defn.TastyReflection_macroContext )
701
701
else EmptyTree
702
702
703
703
lazy val synthesizedTupleFunction : SpecialHandler =
704
- (formal : Type , span : Span ) => implicit ( ctx : Context ) => formal match {
704
+ (formal, span) => implicit ctx => formal match {
705
705
case AppliedType (_, funArgs @ fun :: tupled :: Nil ) =>
706
706
def functionTypeEqual (baseFun : Type , actualArgs : List [Type ], actualRet : Type , expected : Type ) = {
707
707
expected =:= defn.FunctionOf (actualArgs, actualRet, defn.isImplicitFunctionType(baseFun), defn.isErasedFunctionType(baseFun))
@@ -748,7 +748,7 @@ trait Implicits { self: Typer =>
748
748
* `Eql.eqlAny[T, U]` as solution.
749
749
*/
750
750
lazy val synthesizedEq : SpecialHandler =
751
- (formal : Type , span : Span ) => implicit ( ctx : Context ) => {
751
+ (formal, span) => implicit ctx => {
752
752
753
753
/** Is there an `Eql[T, T]` instance, assuming -strictEquality? */
754
754
def hasEq (tp : Type )(implicit ctx : Context ): Boolean = {
@@ -813,7 +813,7 @@ trait Implicits { self: Typer =>
813
813
* An EmptyTree is returned if materialization fails.
814
814
*/
815
815
lazy val synthesizedValueOf : SpecialHandler =
816
- (formal : Type , span : Span ) => implicit ( ctx : Context ) => {
816
+ (formal, span) => implicit ctx => {
817
817
def success (t : Tree ) = New (defn.ValueOfClass .typeRef.appliedTo(t.tpe), t :: Nil ).withSpan(span)
818
818
819
819
formal.argTypes match {
@@ -873,7 +873,7 @@ trait Implicits { self: Typer =>
873
873
* where `T` is a generic product type or a case object or an enum case.
874
874
*/
875
875
lazy val synthesizedProductMirror : SpecialHandler =
876
- (formal : Type , span : Span ) => implicit ( ctx : Context ) => {
876
+ (formal, span) => implicit ctx => {
877
877
def mirrorFor (mirroredType0 : Type ): Tree = {
878
878
val mirroredType = mirroredType0.stripTypeVar
879
879
mirroredType match {
@@ -933,7 +933,7 @@ trait Implicits { self: Typer =>
933
933
* where `T` is a generic sum type.
934
934
*/
935
935
lazy val synthesizedSumMirror : SpecialHandler =
936
- (formal : Type , span : Span ) => implicit ( ctx : Context ) => {
936
+ (formal, span) => implicit ctx => {
937
937
formal.member(tpnme.MirroredType ).info match {
938
938
case TypeBounds (mirroredType0, _) =>
939
939
val mirroredType = mirroredType0.stripTypeVar
@@ -1008,7 +1008,7 @@ trait Implicits { self: Typer =>
1008
1008
* where `T` is a generic sum or product or singleton type.
1009
1009
*/
1010
1010
lazy val synthesizedMirror : SpecialHandler =
1011
- (formal : Type , span : Span ) => implicit ( ctx : Context ) => {
1011
+ (formal, span) => implicit ctx => {
1012
1012
formal.member(tpnme.MirroredType ).info match {
1013
1013
case TypeBounds (mirroredType, _) =>
1014
1014
if (mirroredType.termSymbol.is(CaseVal ) || mirroredType.classSymbol.isGenericProduct)
0 commit comments