File tree 2 files changed +6
-5
lines changed
compiler/src/dotty/tools/dotc/core 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,11 @@ object TypeApplications {
154
154
}
155
155
}
156
156
157
- import TypeApplications ._
158
-
159
157
/** A decorator that provides methods for modeling type application */
160
- class TypeApplications (val self : Type ) extends AnyVal {
158
+ trait TypeApplications extends Any {
159
+ def self : Type
160
+
161
+ import TypeApplications ._
161
162
162
163
/** The type parameters of this type are:
163
164
* For a ClassInfo type, the type parameters of its class.
Original file line number Diff line number Diff line change @@ -4560,12 +4560,12 @@ object Types {
4560
4560
}
4561
4561
4562
4562
// ----- Decorator implicits --------------------------------------------
4563
-
4564
- implicit def decorateTypeApplications (tpe : Type ): TypeApplications = new TypeApplications (tpe)
4563
+ implicit class TypeApplicationsypyp (val self : Type ) extends AnyVal with TypeApplications
4565
4564
4566
4565
implicit class typeListDeco (val tps1 : List [Type ]) extends AnyVal {
4567
4566
@ tailrec def stableHash : Boolean =
4568
4567
tps1.isEmpty || tps1.head.stableHash && tps1.tail.stableHash
4568
+
4569
4569
@ tailrec def equalElements (tps2 : List [Type ], bs : BinderPairs ): Boolean =
4570
4570
(tps1 `eq` tps2) || {
4571
4571
if (tps1.isEmpty) tps2.isEmpty
You can’t perform that action at this time.
0 commit comments