Skip to content

Commit 4376f39

Browse files
committed
fix
1 parent 1598192 commit 4376f39

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

unroll/plugin/src-3/UnrollPhaseScala3.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class UnrollPhaseScala3() extends PluginPhase {
160160
Literal(Constant(paramIndex)),
161161
EmptyTree,
162162
Block(
163-
stmts,
163+
stmts.take(paramIndex),
164164
Apply(
165165
select,
166166
args.take(paramIndex) ++

unroll/tests/caseclass/v3/src/Unrolled.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ case class Unrolled(s: String, n: Int = 1, @unroll b: Boolean = true, @unroll l
66
def foo = s + n + b + l
77
}
88

9-
10-

0 commit comments

Comments
 (0)