Skip to content

Commit

Permalink
fix-index-out-of-bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Feb 10, 2024
1 parent be84021 commit 27e6726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unroll/plugin/src-3/UnrollPhaseScala3.scala
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class UnrollPhaseScala3() extends PluginPhase {
else if (isCaseApply) defdef.symbol.owner.companionClass.primaryConstructor
else defdef.symbol

val firstValueParamClauseIndex = defdef.paramss.indexWhere(!_.headOption.exists(_.isInstanceOf[TypeDef]))
val firstValueParamClauseIndex = annotated.paramSymss.indexWhere(!_.headOption.exists(_.isType))

if (firstValueParamClauseIndex == -1) Nil
else {
Expand Down

0 comments on commit 27e6726

Please sign in to comment.