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 @@ -606,7 +606,7 @@ trait ImplicitRunInfo:
606
606
private var parts : mutable.LinkedHashSet [Type ] = _
607
607
private val partSeen = util.HashSet [Type ]()
608
608
609
- def traverse (t : Type ) =
609
+ def traverse (t : Type ) = try
610
610
if partSeen.contains(t) then ()
611
611
else if implicitScopeCache.contains(t) then parts += t
612
612
else
@@ -638,6 +638,7 @@ trait ImplicitRunInfo:
638
638
traverseChildren(t)
639
639
case t =>
640
640
traverseChildren(t)
641
+ catch case ex : Throwable => handleRecursive(" collectParts of" , t.show, ex)
641
642
642
643
def apply (tp : Type ): collection.Set [Type ] =
643
644
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