Skip to content

Commit 31de5df

Browse files
committed
remove ExportType sentinal
1 parent 64a298a commit 31de5df

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4815,11 +4815,6 @@ object Types {
48154815
/** The type of an import clause tree */
48164816
case class ImportType(expr: Tree) extends UncachedGroundType
48174817

4818-
/** Sentinal for typed export clauses */
4819-
@sharable case object ExportType extends CachedGroundType {
4820-
override def computeHash(bs: Binders): Int = hashSeed
4821-
}
4822-
48234818
/** Sentinel for "missing type" */
48244819
@sharable case object NoType extends CachedGroundType {
48254820
override def computeHash(bs: Binders): Int = hashSeed

compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ trait TypeAssigner {
512512
tree.withType(sym.termRef)
513513

514514
def assignType(tree: untpd.Export)(using Context): Export =
515-
tree.withType(ExportType)
515+
tree.withType(defn.UnitType)
516516

517517
def assignType(tree: untpd.Annotated, arg: Tree, annot: Tree)(using Context): Annotated = {
518518
assert(tree.isType) // annotating a term is done via a Typed node, can't use Annotate directly

0 commit comments

Comments
 (0)