Skip to content

Commit b167ec4

Browse files
FlandiaYingmanLPTK
andauthored
Update hkmc2/shared/src/main/scala/hkmc2/semantics/Elaborator.scala
Co-authored-by: Lionel Parreaux <lionel.parreaux@gmail.com>
1 parent c3071ac commit b167ec4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hkmc2/shared/src/main/scala/hkmc2/semantics/Elaborator.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,10 @@ extends Importer:
429429
case N => (N, ctx)
430430
// Add parameters to context
431431
val (pss, newCtx) =
432-
td.paramLists.foldLeft(Ls[ParamList](), newCtx1)({case ((pss, ctx), ps) =>
433-
val (qs, newCtx) = params(ps)(using ctx)
434-
(pss :+ ParamList(ParamListFlags.empty, qs), newCtx)
435-
})
432+
td.paramLists.foldLeft(Ls[ParamList](), newCtx1):
433+
case ((pss, ctx), ps) =>
434+
val (qs, newCtx) = params(ps)(using ctx)
435+
(pss :+ ParamList(ParamListFlags.empty, qs), newCtx)
436436
val b = rhs.map(term(_)(using newCtx))
437437
val r = FlowSymbol(s"‹result of ${sym}", nextUid)
438438
val tdf = TermDefinition(k, sym, pss, td.signature.orElse(newSignatureTrees.get(id.name)).map(term), b, r)

0 commit comments

Comments
 (0)