File tree 2 files changed +12
-3
lines changed
compiler/src/dotty/tools/dotc/core
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) {
2158
2158
}
2159
2159
2160
2160
override def gadtBounds (sym : Symbol )(implicit ctx : Context ): TypeBounds = {
2161
- footprint += sym.typeRef
2161
+ if (sym.exists) footprint += sym.typeRef
2162
2162
super .gadtBounds(sym)
2163
2163
}
2164
2164
2165
2165
override def gadtAddLowerBound (sym : Symbol , b : Type ): Boolean = {
2166
- footprint += sym.typeRef
2166
+ if (sym.exists) footprint += sym.typeRef
2167
2167
super .gadtAddLowerBound(sym, b)
2168
2168
}
2169
2169
2170
2170
override def gadtAddUpperBound (sym : Symbol , b : Type ): Boolean = {
2171
- footprint += sym.typeRef
2171
+ if (sym.exists) footprint += sym.typeRef
2172
2172
super .gadtAddUpperBound(sym, b)
2173
2173
}
2174
2174
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