compileTime

object compileTime
class Object
trait Matchable
class Any

Value members

Concrete methods

inline def preAssert(inline value: Boolean): Unit

Try to check value at compile time if possible or fallbacks to runtime if allowed.

Try to check value at compile time if possible or fallbacks to runtime if allowed.

Evaluation rules:

  • Fully inline constraints with inline input are guaranteed to be evaluated at compile time

  • Non-fully inline constraints or inputs will be as optimized as possible by the language through the inline feature and will be evaluated at runtime

Value Params
value

the asserted boolean (internally treated as an expression)