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
Fix: accept Opaque-with-implementation in assertTransparent test (#1047)
PR #754 unified translateFunction and translateMethod, which applies
return type constraints to class methods. This makes method bodies
Opaque (with postconditions and implementation) instead of Transparent.
The Opaque body with an implementation is semantically correct — the
verifier can still reason about the body AND enforce the return type
constraint. The test's assertTransparent was overly strict, rejecting
Opaque bodies even when an implementation was present.
Fix: accept both Transparent and Opaque-with-implementation in
assertTransparent, since both provide the body for verification.
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
---------
Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
0 commit comments