the foundations of a type traits module; better error messages for expr, typedesc and typeclasses params
This commit is contained in:
parent
98b7bdaa50
commit
efb53233cb
8 changed files with 65 additions and 12 deletions
|
|
@ -667,3 +667,6 @@ template AssertNotNil*(e: expr): expr =
|
|||
if(e == nil): InternalError($InstantiationInfo())
|
||||
e
|
||||
|
||||
template InternalAssert*(e: bool): stmt =
|
||||
if not e: InternalError($InstantiationInfo())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue