这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mdelvecchio-jsc
Copy link

Currently, the following code will cause ocamlformat to fail when passed --erase-jane-syntax:

type 'a t = here:[%call_pos] -> 'a

let f (x : here:[%call_pos] -> _) = x ()

This was just due to one of the branches of the function_type parsing not being updated to check for call_pos. Fixed this, and did some code rearrangement to be more consistent.

Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com>
Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com>
Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com>
@mdelvecchio-jsc mdelvecchio-jsc merged commit c3879ad into jane Feb 4, 2025
3 of 4 checks passed
@mdelvecchio-jsc mdelvecchio-jsc deleted the fix-call_pos-erasure branch February 4, 2025 15:57
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.

3 participants