File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments