File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ import CslibTests.LTS
1111import CslibTests.LambdaCalculus
1212import CslibTests.MLL
1313import CslibTests.Reduction
14+ import CslibTests.HasWellFormed
Original file line number Diff line number Diff line change 1+ /-
2+ Copyright (c) 2026 Sean D. Stoneburner. All rights reserved.
3+ Released under Apache 2.0 license as described in the file LICENSE.
4+ Authors: Sean D. Stoneburner
5+ -/
6+ import Cslib.Algorithms.Lean.TimeM
7+ import Cslib.Foundations.Syntax.HasWellFormed
8+
9+ open Cslib.Algorithms.Lean
10+
11+ /-!
12+ # Syntax Collision Test
13+ This file tests that the `✓` prefix macro from `TimeM` does not collide with
14+ the `✓` postfix notation from `HasWellFormed` across line breaks.
15+ -/
16+
17+ def testParserCollision (n : Nat) : TimeM Nat Nat := do
18+ let m := n
19+ ✓ return m
20+
21+ -- Ensure the postfix notation still functions correctly when attached without whitespace
22+ variable {α : Type *} [Cslib.HasWellFormed α] (x : α)
23+ #check x✓
You can’t perform that action at this time.
0 commit comments