We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6709faf commit 2ed386bCopy full SHA for 2ed386b
eqwalizer/src/main/scala/com/whatsapp/eqwalizer/tc/ElabApplyCustom.scala
@@ -309,10 +309,10 @@ class ElabApplyCustom(pipelineContext: PipelineContext) {
309
def isShapeIterator(lambda: Lambda): Boolean = {
310
val lastClauseIndex = lambda.clauses.length - 1
311
lambda.clauses.zipWithIndex forall { (clause, index) =>
312
- clause.pats.head match {
313
- case PatVar(_) if index == lastClauseIndex =>
+ clause.pats match {
+ case List(PatVar(_), _, _) if index == lastClauseIndex =>
314
true
315
- case PatAtom(_) =>
+ case List(PatAtom(_), _, _) =>
316
317
case _ =>
318
false
0 commit comments