Skip to content

Conversation

@mtzguido
Copy link
Member

We ran into this bug today (see testcase). I think this is the fix, the one thing I'm not sure about is whether passing t2.typ is correct. It seems like it's meant to be the type of the expression being visited, but I don't understand OCaml visitors well enough to be sure.

@msprotz
Copy link
Contributor

msprotz commented Apr 11, 2025

Yeah but there's a helper called visit_expr_w that does this for you automatically (while also calling the visitor on the type itself). Other than that looks great I remember hitting this bug years ago and working around it by not using -fanonymous-unions

@mtzguido
Copy link
Member Author

Nice, thanks! Updated.

@mtzguido mtzguido merged commit 19e1daa into FStarLang:master Apr 11, 2025
1 check passed
@mtzguido mtzguido deleted the anon branch April 11, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants