Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report an error when a type annotation is too general #2109

Merged
merged 11 commits into from
Aug 30, 2022
Prev Previous commit
Next Next commit
add the missing test
  • Loading branch information
konnov committed Aug 26, 2022
commit a0df1453c214295661965cb54312fddc256c74a3
7 changes: 7 additions & 0 deletions test/tla/PolyTooGeneral.tla
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---------------------- MODULE PolyTooGeneral ------------------------------
\* A library author did not think carefully about the types
\* and wrote a too general type. The type checker should complain.
\*
\* @type: a => b;
Id(x) == x
===========================================================================