Files
lean4/tests/server_interactive/unknownIdentifierCodeActions.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

65 lines
1.8 KiB
Lean4

module
--^ waitForILeans
public section
#check Lean.Server.Test.Refs.test1
--^ codeAction
example : LeanServerTestRefsTest0
--^ codeAction
namespace Lean.Server.Test.Refs
#check Lean.Server.Test.Refs.test1
--^ codeAction
end Lean.Server.Test.Refs
namespace Lean.Server.Test.Refs.Foobar
#check Lean.Server.Test.LeanServerTestRefsTest0'
end Lean.Server.Test.Refs.Foobar
open Lean.Server.Test.Refs.Foobar
#check Lean.Server.Test.Refs.test1
--^ codeAction
#check Lean.Server.Test.Refs.test
--^ codeAction
namespace Lean.Server.Test.Refs.Test1
#check Lean.Server.Test.Refs.Test1
--^ codeAction
end Lean.Server.Test.Refs.Test1
structure Foobar where
veryLongAndHopefullyVeryUniqueBar0 : Nat
namespace Foobar
def veryLongAndHopefullyVeryUniqueFoo0 := 0
def veryLongAndHopefullyVeryUniqueFoobar0 : Foobar := { veryLongAndHopefullyVeryUniqueBar0 := 0 }
end Foobar
open Foobar
#check veryLongAndHopefullyVeryUniqueFoo
--^ codeAction
example (f : Foobar) : Nat := f.veryLongAndHopefullyVeryUniqueBar
--^ codeAction
example : Foobar := .veryLongAndHopefullyVeryUniqueFoobar
--^ codeAction
def pubNonExposed : Lean.Server.Test.Refs.Test1
--^ codeAction
:= Lean.Server.Test.Refs.Test1
--^ codeAction
public meta def pubMeta : Lean.Server.Test.Refs.Test1
--^ codeAction
:= Lean.Server.Test.Refs.Test1
--^ codeAction