File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -2158,17 +2158,17 @@ class TrackingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
21582158 }
21592159
21602160 override def gadtBounds (sym : Symbol )(implicit ctx : Context ): TypeBounds = {
2161- footprint += sym.typeRef
2161+ if (sym.exists) footprint += sym.typeRef
21622162 super .gadtBounds(sym)
21632163 }
21642164
21652165 override def gadtAddLowerBound (sym : Symbol , b : Type ): Boolean = {
2166- footprint += sym.typeRef
2166+ if (sym.exists) footprint += sym.typeRef
21672167 super .gadtAddLowerBound(sym, b)
21682168 }
21692169
21702170 override def gadtAddUpperBound (sym : Symbol , b : Type ): Boolean = {
2171- footprint += sym.typeRef
2171+ if (sym.exists) footprint += sym.typeRef
21722172 super .gadtAddUpperBound(sym, b)
21732173 }
21742174
Original file line number Diff line number Diff line change 1+ object Test {
2+ type Foo = Int { type U }
3+ type Bar [T ] = T match {
4+ case Unit => Unit
5+ }
6+ inline def baz (foo : Foo ): Unit = {
7+ val v : Bar [foo.U ] = ???
8+ }
9+ }
You can’t perform that action at this time.
0 commit comments