File tree 2 files changed +12
-1
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ trait ImplicitRunInfo:
604
604
private var parts : mutable.LinkedHashSet [Type ] = _
605
605
private val partSeen = util.HashSet [Type ]()
606
606
607
- def traverse (t : Type ) =
607
+ def traverse (t : Type ) = try
608
608
if partSeen.contains(t) then ()
609
609
else if implicitScopeCache.contains(t) then parts += t
610
610
else
@@ -643,6 +643,7 @@ trait ImplicitRunInfo:
643
643
traverse(mt)
644
644
case t =>
645
645
traverseChildren(t)
646
+ catch case ex : Throwable => handleRecursive(" collectParts of" , t.show, ex)
646
647
647
648
def apply (tp : Type ): collection.Set [Type ] =
648
649
parts = mutable.LinkedHashSet ()
Original file line number Diff line number Diff line change
1
+ type BAZ [T ] = T match
2
+ case Any => DFVal [BAZREC [T ]]
3
+
4
+ type BAZREC [T ] = T match
5
+ case NonEmptyTuple => Tuple .Map [T , BAZ ]
6
+
7
+ trait DFVal [T ]
8
+
9
+ def foo (relIdx : BAZ [Any ]): Unit =
10
+ relIdx.bar // error
You can’t perform that action at this time.
0 commit comments