File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/cc
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ trait CaptureRef extends TypeProxy, ValueType:
110
110
111
111
def viaInfo (info : Type )(test : Type => Boolean ): Boolean = info.match
112
112
case info : SingletonCaptureRef => test(info)
113
- case info : AndType => test (info.tp1) || test (info.tp2)
114
- case info : OrType => test (info.tp1) && test (info.tp2)
113
+ case info : AndType => viaInfo (info.tp1)(test) || viaInfo (info.tp2)(test )
114
+ case info : OrType => viaInfo (info.tp1)(test) && viaInfo (info.tp2)(test )
115
115
case _ => false
116
116
117
117
(this eq y)
@@ -123,7 +123,7 @@ trait CaptureRef extends TypeProxy, ValueType:
123
123
this .subsumes(ypre)
124
124
|| this .match
125
125
case x @ TermRef (xpre : CaptureRef , _) if x.symbol == y.symbol =>
126
- subsumingRefs(xpre, ypre) && subsumingRefs(ypre, xpre)
126
+ withMode( Mode . IgnoreCaptures ) { TypeComparer .isSameRef(xpre, ypre)}
127
127
case _ =>
128
128
false
129
129
case _ => false
You can’t perform that action at this time.
0 commit comments