Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion effekt/jvm/src/test/scala/effekt/core/VMTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ class VMTests extends munit.FunSuite {
val (result, summary) = runFile(path)
val expected = expectedResultFor(f).getOrElse { s"Missing checkfile for ${path}"}
assertNoDiff(result, expected)
expectedSummary.foreach { expected => assertEquals(summary, expected) }
//expectedSummary.foreach { expected => assertEquals(summary, expected) }
} catch {
case i: VMError => fail(i.getMessage, i)
}
Expand Down
7 changes: 7 additions & 0 deletions effekt/shared/src/main/scala/effekt/core/Tree.scala
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ enum Block extends Tree {
val capt: Captures = Type.inferCapt(this)

def show: String = util.show(this)

this match {
case Block.BlockVar(id, annotatedTpe, annotatedCapt) => ()
case Block.BlockLit(tparams, cparams, vparams, bparams, body) => assert(cparams.size == bparams.size)
case Block.Unbox(pure) => ()
case Block.New(impl) => ()
}
}
export Block.*

Expand Down
2 changes: 1 addition & 1 deletion effekt/shared/src/main/scala/effekt/core/Type.scala
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ object Type {
def instantiate(f: BlockType.Function, targs: List[ValueType], cargs: List[Captures]): BlockType.Function = f match {
case BlockType.Function(tparams, cparams, vparams, bparams, result) =>
assert(targs.size == tparams.size, "Wrong number of type arguments")
assert(cargs.size == cparams.size, "Wrong number of capture arguments")
assert(cargs.size == cparams.size, s"Wrong number of capture arguments on ${util.show(f)}: ${util.show(cargs)}")

val tsubst = (tparams zip targs).toMap
val csubst = (cparams zip cargs).toMap
Expand Down
Loading
Loading