diff --git a/tests/t70_locals.nim b/tests/t70_locals.nim index ad94319b..9b861d37 100644 --- a/tests/t70_locals.nim +++ b/tests/t70_locals.nim @@ -501,23 +501,3 @@ suite "lifetimes": # destroy bar.m; eg. step == 9 foo() - -import std/sugar - -suite "high-cal": - var r = 0 - block: - ## sugary procedure arguments can be used in expressions - r = 0 - proc bar(x: int): int {.cps: Cont.} = - inc r - result = x * 2 - - proc foo(fn: (int) -> int): int {.cps: Cont.} = - inc r - result = fn: bar(2) - inc r - - check 12 == foo(x => x * 3) - check r == 3 - diff --git a/tests/t71_sugar.nim b/tests/t71_sugar.nim index 321ea422..16be5d83 100644 --- a/tests/t71_sugar.nim +++ b/tests/t71_sugar.nim @@ -18,4 +18,3 @@ suite "high-cal": check 12 == foo(x => x * 3) check r == 3 -