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 }}
Repository navigation
Commit 2294674
Browse filesBrowse the repository at this point in the historyBrowse files
Codex review on #9080: printing `$C_'a` as `$a` made existentials of
different constructors that bind the same variable print alike, so a
mismatch between them read `$a` vs `$a`. Existentials are now named `$a`
before the compiler makes the name unique, as OCaml 5 does, so the second
one is `$a1`; the constructor binding each name is recorded for the escape
explanation instead of being decoded from the name.
Diagnostic modified (existentials of two constructors):
Example:
type rec any = First('a): any | Second('a): any
let same = (First(x), Second(y)) => x == y
Before (diagnostic):
This has type: $a
But it's being compared to something of type: $a
After (diagnostic):
This has type: $a1
But it's being compared to something of type: $a
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLMawVgtmiKy3TMBc3
Signed-off-by: Christoph Knittel <ck@cca.io>
0 commit comments