Skip to content

Commit ac031b5

Browse files
Update compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
Co-authored-by: odersky <[email protected]>
1 parent ef521c8 commit ac031b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ object PatternMatcher {
383383
assert(mt.isImplicitMethod || mt.isContextualMethod)
384384
val (args, rest) = implicits.splitAt(mt.paramNames.size)
385385
applyImplicits(acc.appliedToArgs(args), rest, mt.resultType)
386-
case _ => acc
386+
case _ =>
387+
assert(implicits.isEmpty)
388+
acc
387389
}
388390
val mt @ MethodType(_) = extractor.tpe.widen
389391
val unapp0 = extractor.appliedTo(ref(scrutinee).ensureConforms(mt.paramInfos.head))

0 commit comments

Comments
 (0)