File tree 3 files changed +6
-1
lines changed
compiler/src/dotty/tools/dotc
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4600,6 +4600,7 @@ object Types {
4600
4600
def apply (lo : Type , hi : Type )(implicit ctx : Context ): TypeBounds =
4601
4601
unique(new RealTypeBounds (lo, hi))
4602
4602
def empty (implicit ctx : Context ): TypeBounds = apply(defn.NothingType , defn.AnyType )
4603
+ def emptyPolyKind (implicit ctx : Context ): TypeBounds = apply(defn.NothingType , defn.AnyKindType )
4603
4604
def upper (hi : Type )(implicit ctx : Context ): TypeBounds = apply(defn.NothingType , hi)
4604
4605
def lower (lo : Type )(implicit ctx : Context ): TypeBounds = apply(lo, defn.AnyType )
4605
4606
}
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ class SymUtils(val self: Symbol) extends AnyVal {
211
211
212
212
/** The typeRef with wildcard arguments for each type parameter */
213
213
def rawTypeRef (implicit ctx : Context ) =
214
- self.typeRef.appliedTo(self.typeParams.map(_ => TypeBounds .empty ))
214
+ self.typeRef.appliedTo(self.typeParams.map(_ => TypeBounds .emptyPolyKind ))
215
215
216
216
/** Is symbol a quote operation? */
217
217
def isQuote (implicit ctx : Context ): Boolean =
Original file line number Diff line number Diff line change
1
+ sealed trait Test [F [_]]
2
+ object Test {
3
+ final case class Completed [F [_]]() extends Test [F ]
4
+ }
You can’t perform that action at this time.
0 commit comments