Skip to content

Commit

Permalink
Fix type arguments when PolymorphismBoxing parametrized handlers (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
marzipankaiser authored Sep 10, 2024
2 parents cebaa6e + ee85b84 commit cf50386
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions effekt/jvm/src/test/scala/effekt/LLVMTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ class LLVMTests extends EffektTests {
lazy val bugs: List[File] = List(
examplesDir / "pos" / "issue108.effekt", // seg faults!

// unsure
examplesDir / "pos" / "parametrized.effekt", // just doesn't print anything

// names not sanitized (even?)
examplesDir / "pos" / "special_names.effekt",

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ object PolymorphismBoxing extends Phase[CoreTransformed, CoreTransformed] {
val bargs = (bcoercers zip bparams).map { case (c, p) => c(Block.BlockVar(p.id, p.tpe, Set.empty)) }
Block.BlockLit(ftparams, bparams.map(_.id), vparams, bparams,
Def(inner, block,
Stmt.Val(result, rcoercer.from, Stmt.App(Block.BlockVar(inner, block.tpe, block.capt), targs map transformArg, vargs, bargs),
Stmt.Val(result, rcoercer.from, Stmt.App(Block.BlockVar(inner, block.tpe, block.capt), (targs map transformArg) ++ (ftparams map core.ValueType.Var.apply), vargs, bargs),
Stmt.Return(rcoercer(Pure.ValueVar(result, rcoercer.from))))))
}

Expand Down

0 comments on commit cf50386

Please sign in to comment.