Skip to content

Commit 7227eb5

Browse files
committed
Cleanup of SkolemType
1 parent 4b76327 commit 7227eb5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,7 @@ object Types {
29942994
// ----- Skolem types -----------------------------------------------
29952995

29962996
/** A skolem type reference with underlying type `binder`. */
2997-
abstract case class SkolemType(info: Type) extends UncachedProxyType with ValueType with SingletonType {
2997+
case class SkolemType(info: Type) extends UncachedProxyType with ValueType with SingletonType {
29982998
override def underlying(implicit ctx: Context) = info
29992999
def derivedSkolemType(info: Type)(implicit ctx: Context) =
30003000
if (info eq this.info) this else SkolemType(info)
@@ -3010,13 +3010,6 @@ object Types {
30103010
override def toString = s"Skolem($hashCode)"
30113011
}
30123012

3013-
final class CachedSkolemType(info: Type) extends SkolemType(info)
3014-
3015-
object SkolemType {
3016-
def apply(info: Type)(implicit ctx: Context) =
3017-
unique(new CachedSkolemType(info))
3018-
}
3019-
30203013
// ------------ Type variables ----------------------------------------
30213014

30223015
/** In a TypeApply tree, a TypeVar is created for each argument type to be inferred.

0 commit comments

Comments
 (0)