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
When assert is used as a value (e.g. let f = assert), transl_primitive
now generates a proper wrapper function instead of falling through to
Pccall, which would produce a call to a non-existent runtime function.
The generated lambda is: fun assert_cond -> if assert_cond then () else
raise Assert_failure(file, line, col), using the location where assert
appears in source. This is the best possible location for an alias since
the call-site location is not available at primitive translation time.
assert_failed_at is extracted as a location-based helper alongside the
existing assert_failed (which takes a typed expression).
Signed-Off-By: Pedro Castro <aspeddro@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments