Skip to content

Commit

Permalink
Update test files
Browse files Browse the repository at this point in the history
  • Loading branch information
chengluyu committed Sep 29, 2023
1 parent 031c9cd commit 5dc8af8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
14 changes: 1 addition & 13 deletions shared/src/test/diff/codegen/Mixin.mls
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ module TestLang extends EvalBase, EvalNeg, EvalNegNeg
//│ globalThis.TestLang = typing_unit5.TestLang;
//│ // End of generated code

:js
fun mk(n) = if n is
0 then Lit(0)
1 then Neg(mk(n))
Expand All @@ -244,17 +243,6 @@ TestLang.eval(mk(0))
//│ Int
//│ where
//│ 'E :> Add['E] | Lit | Neg['E]
//│ // Prelude
//│ class TypingUnit6 {}
//│ const typing_unit6 = new TypingUnit6;
//│ // Query 1
//│ globalThis.mk = function mk(n) {
//│ let a;
//│ return a = n, a === 0 ? Lit(0) : a === 1 ? Neg(mk(n)) : Add(mk(n), mk(n));
//│ };
//│ // Query 2
//│ res = TestLang.eval(mk(0));
//│ // End of generated code
//│ res
//│ = 0

Expand Down Expand Up @@ -384,7 +372,7 @@ mixin Base {
fun x = y
}
//│ ╔══[ERROR] identifier not found: y
//│ ║ l.384: fun x = y
//│ ║ l.372: fun x = y
//│ ╙── ^
//│ mixin Base() {
//│ fun x: error
Expand Down
1 change: 0 additions & 1 deletion shared/src/test/diff/codegen/NuFuns.mls
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ foo
//│ = 111


// FIXME: returns a thunk
fun main =
log("Hello")
main
Expand Down

0 comments on commit 5dc8af8

Please sign in to comment.