Skip to content

Commit 3a503cf

Browse files
committed
Made TypeBoundsTrees to be TypTrees so they are eliminated by PostTyperTransform
1 parent 5d70c58 commit 3a503cf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ object Trees {
644644

645645
/** >: lo <: hi */
646646
case class TypeBoundsTree[-T >: Untyped] private[ast] (lo: Tree[T], hi: Tree[T])
647-
extends Tree[T] {
647+
extends TypTree[T] {
648648
type ThisTree[-T >: Untyped] = TypeBoundsTree[T]
649649
}
650650

src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ class Typer extends Namer with Applications with Implicits {
8888
if (reallyExists(mbr)) site.select(name, mbr)
8989
else {
9090
if (!site.isErroneous) {
91-
typr.println(s"site = $site, baseClasses = ${site.baseClasses}")
9291
ctx.error(
9392
if (name == nme.CONSTRUCTOR) i"$site does not have a constructor"
9493
else i"$name is not a member of $site", pos)

0 commit comments

Comments
 (0)