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
Then compile-time construction of that newtype Both((10, "abc")) fails with:
[error] Newtype Assertion Failed
[error] Could not validate Assertion at compile-time.
[error] Either use a literal or call "Both.unsafeWrap(Expr[Nothing](scala.Tuple2.apply[Int, String](10, "abc")))"
Macro requires we provide literal value, but we use tuple. Hope this limitation will be removed, because newtypes of tuples is helpful.
Hi,
We should have a way to build a custom assertion for any given type.
Thank you
The text was updated successfully, but these errors were encountered: