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 a compile-time error occurs due to the value to refine not being evaluable at compile-time, the message can be quite confusing for newcomers. It would be useful to detect some easy mistakes (such as forgetting an inline) when such error occurs and provide a better message accordingly.
Example:
valnotInlined:Int=5valpos:Int:|Positive= notInlined //`notInlined` is not a non-inlined variable. You need to make it `inline` in order to check it at compile-time etc.
When a compile-time error occurs due to the value to refine not being evaluable at compile-time, the message can be quite confusing for newcomers. It would be useful to detect some easy mistakes (such as forgetting an
inline
) when such error occurs and provide a better message accordingly.Example:
Errors worth detecting are:
FromExpr
). This will be especially useful for future versions. See Allow constraints for non-primitive types to be evaluable at compile-time #147The text was updated successfully, but these errors were encountered: