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 issue.test.model#Whatever type is just ordinary type alias, code compiles. When this same type becomes opaque type, code compilation fails with:
We were unable to read your assertion at compile-time.
You must either define your assertion directly or refer to other inline definitions:
override inline def assertion = greaterThan(10) && lessThan(100).
or
inline def extracted = greaterThan(10) && lessThan(100).
override inline def assertion = extracted.
It fails for both CustomerId and CustomerName.
Expected result would be that code compiles. Also this behaviour seems to be exclusive to package objects.
I'd like to help with the fix but i need some guidance.
The text was updated successfully, but these errors were encountered:
I created simple-as-possible repo to demonstrate this issue -> https://github.com/m-kalai/zio-prelude-opaque-issue
When
issue.test.model#Whatever
type is just ordinary type alias, code compiles. When this same type becomesopaque
type, code compilation fails with:It fails for both
CustomerId
andCustomerName
.Expected result would be that code compiles. Also this behaviour seems to be exclusive to package objects.
I'd like to help with the fix but i need some guidance.
The text was updated successfully, but these errors were encountered: