lean4-htt/tests/server_interactive/completion4.lean
Garmelon a3cb39eac9
chore: migrate more tests to new test suite (#12809)
This PR migrates most remaining tests to the new test suite. It also
completes the migration of directories like `tests/lean/run`, meaning
that PRs trying to add tests to those old directories will now fail.
2026-03-06 16:52:01 +00:00

22 lines
395 B
Text

structure S where
fn1 : Nat → IO Unit
fn2 : Bool → IO Unit
pred : String → Bool
def f (s : S) : IO Unit := do
s.fn1 10
s.
--^ completion
def g1 (s : S) : IO Unit := do
if (← s.
--^ completion
def g2 (s : S) : IO Unit := do
s.fn1 10
if (← s.f
--^ completion
def g3 (s : S) : IO String := do
let mut x := 1 + s.
--^ completion