Skip to content

Examples: fix identifier reuse parse failures#251

Open
ahelwer wants to merge 1 commit intotlaplus:mainfrom
ahelwer:example-parse-errors
Open

Examples: fix identifier reuse parse failures#251
ahelwer wants to merge 1 commit intotlaplus:mainfrom
ahelwer:example-parse-errors

Conversation

@ahelwer
Copy link
Collaborator

@ahelwer ahelwer commented Feb 27, 2026

Several specs in the examples subdirectory fail to parse when checked with SANY, due to reusing identifier names already defined in an enclosing scope. TLAPM accepted these specs but SANY does not, as TLA+ does not allow definition shadowing.

Ref #136

@ahelwer ahelwer force-pushed the example-parse-errors branch from 64c6a4e to eecf2c5 Compare February 28, 2026 23:38
Several specs in the examples subdirectory fail to parse when checked
with SANY, due to reusing identifier names already defined in an
enclosing scope. TLAPM accepted these specs but SANY does not, as TLA+
does not allow definition shadowing.

Also disable a test in the examples directory which was failing because
it required importing the community modules.

Signed-off-by: Andrew Helwer <ahelwer@pm.me>
@ahelwer ahelwer force-pushed the example-parse-errors branch from eecf2c5 to 7c2a046 Compare March 1, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant