File tree 1 file changed +4
-7
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2107,20 +2107,17 @@ class TrackingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
2107
2107
}
2108
2108
2109
2109
override def gadtBounds (sym : Symbol )(implicit ctx : Context ): TypeBounds = {
2110
- if (! sym.exists) null
2111
- else {
2112
- footprint += sym.typeRef
2113
- super .gadtBounds(sym)
2114
- }
2110
+ if (sym.exists) footprint += sym.typeRef
2111
+ super .gadtBounds(sym)
2115
2112
}
2116
2113
2117
2114
override def gadtAddLowerBound (sym : Symbol , b : Type ): Boolean = {
2118
- footprint += sym.typeRef
2115
+ if (sym.exists) footprint += sym.typeRef
2119
2116
super .gadtAddLowerBound(sym, b)
2120
2117
}
2121
2118
2122
2119
override def gadtAddUpperBound (sym : Symbol , b : Type ): Boolean = {
2123
- footprint += sym.typeRef
2120
+ if (sym.exists) footprint += sym.typeRef
2124
2121
super .gadtAddUpperBound(sym, b)
2125
2122
}
2126
2123
You can’t perform that action at this time.
0 commit comments