@@ -152,9 +152,9 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
152
152
* +- ThisType
153
153
* +- RecursiveThis
154
154
* +- RecursiveType
155
- * +- LambdaType -+- MethodType
156
- * | +- PolyType
157
- * | +- TypeLambda
155
+ * +- MethodType
156
+ * +- PolyType
157
+ * +- TypeLambda
158
158
* +- TypeBounds
159
159
* +- NoPrefix
160
160
*
@@ -2847,7 +2847,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
2847
2847
2848
2848
/** Methods of the module object `val ParamRef` */
2849
2849
trait ParamRefModule { this : ParamRef .type =>
2850
- def unapply (x : ParamRef ): Option [(LambdaType , Int )]
2850
+ def unapply (x : ParamRef ): Option [(TypeRepr , Int )]
2851
2851
}
2852
2852
2853
2853
/** Makes extension methods on `ParamRef` available without any imports */
@@ -2859,7 +2859,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
2859
2859
/** Extension methods of `ParamRef` */
2860
2860
trait ParamRefMethods :
2861
2861
extension (self : ParamRef ):
2862
- def binder : LambdaType
2862
+ def binder : TypeRepr
2863
2863
def paramNum : Int
2864
2864
end extension
2865
2865
end ParamRefMethods
@@ -2966,12 +2966,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
2966
2966
end extension
2967
2967
end RecursiveTypeMethods
2968
2968
2969
- // TODO: remove LambdaType and use union types (MethodType | PolyType | TypeLambda)
2970
- /** Common abstraction for lambda types (MethodType, PolyType and TypeLambda). */
2971
- type LambdaType <: TypeRepr
2972
-
2973
2969
/** Type of the definition of a method taking a single list of parameters. It's return type may be a MethodType. */
2974
- type MethodType <: LambdaType
2970
+ type MethodType <: TypeRepr
2975
2971
2976
2972
/** `TypeTest` that allows testing at runtime in a pattern match if a `TypeRepr` is a `MethodType` */
2977
2973
given MethodTypeTypeTest as TypeTest [TypeRepr , MethodType ] = MethodTypeTypeTestImpl
@@ -3007,7 +3003,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3007
3003
end MethodTypeMethods
3008
3004
3009
3005
/** Type of the definition of a method taking a list of type parameters. It's return type may be a MethodType. */
3010
- type PolyType <: LambdaType
3006
+ type PolyType <: TypeRepr
3011
3007
3012
3008
/** `TypeTest` that allows testing at runtime in a pattern match if a `TypeRepr` is a `PolyType` */
3013
3009
given PolyTypeTypeTest as TypeTest [TypeRepr , PolyType ] = PolyTypeTypeTestImpl
@@ -3041,7 +3037,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3041
3037
end PolyTypeMethods
3042
3038
3043
3039
/** Type of the definition of a type lambda taking a list of type parameters. It's return type may be a TypeLambda. */
3044
- type TypeLambda <: LambdaType
3040
+ type TypeLambda <: TypeRepr
3045
3041
3046
3042
/** `TypeTest` that allows testing at runtime in a pattern match if a `TypeRepr` is a `TypeLambda` */
3047
3043
given TypeLambdaTypeTest as TypeTest [TypeRepr , TypeLambda ] = TypeLambdaTypeTestImpl
0 commit comments