Skip to content

Commit 73b350a

Browse files
committed
Specialiser type pattern matching added
1 parent d0ae2e6 commit 73b350a

File tree

5 files changed

+404
-268
lines changed

5 files changed

+404
-268
lines changed

hkmc2/shared/src/main/scala/hkmc2/MLsCompiler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ class MLsCompiler(preludeFile: os.Path, mkOutput: ((Str => Unit) => Unit) => Uni
8080
newCtx.nest(N).givenIn:
8181
val elab = Elaborator(etl, wd, newCtx)
8282
val parsed = mainParse.resultBlk
83-
val (blk0, _) = elab.importFrom(parsed)
83+
val (blk0, ctx) = elab.importFrom(parsed)
8484
val blk: semantics.Term.Blk = blk0.copy(stats = semantics.Import(State.runtimeSymbol, runtimeFile.toString) :: blk0.stats)
85-
val typ = new semantics.SimpleSub(stl)
85+
val typ = new semantics.SimpleSub(ctx, stl)
8686
val spBlk = typ.analyzeTermTypes(blk)
8787
val low = ltl.givenIn:
8888
new codegen.Lowering()

0 commit comments

Comments
 (0)