You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
Reduced the issue to a self-contained, reproducible test case.
Description
Definition is rejected with a strange error message, indicating likely scope hygiene violation:
structure str (x : bool) := (x : bool) -- invalid return type for 'str.mk'
structure str (x : bool) := (x : nat)
/-
type mismatch at application
str x
term
x
has type
ℕ
but is expected to have type
bool
-/
Steps to Reproduce
structure str (x : bool) := (x : bool)
structure str (x : bool) := (x : nat)
Expected behavior:
Both definitions are individually accepted, parameter x is ignored.
Alternatively, they are rejected with a specific (identical) error message.
Actual behavior:
Bad error message. See Description.
Reproduces how often:
Always
Versions
Lean (version 3.3.0, commit fa9c868, Release)
Windows 10 Pro
Additional Information
The text was updated successfully, but these errors were encountered:
Prerequisites
or feature requests.
Description
Definition is rejected with a strange error message, indicating likely scope hygiene violation:
Steps to Reproduce
Expected behavior:
Both definitions are individually accepted, parameter x is ignored.
Alternatively, they are rejected with a specific (identical) error message.
Actual behavior:
Bad error message. See Description.
Reproduces how often:
Always
Versions
Lean (version 3.3.0, commit fa9c868, Release)
Windows 10 Pro
Additional Information
The text was updated successfully, but these errors were encountered: