No, it is not capable of raising a compile-time error. It is a runtime assertion, similarly to assert in Python or assert() in C++. It wouldn’t be possible to do compile-time assertion without interpreting the IR that defines the operand of the assert at compile time, by the way.