Closed
Description
Should the corresponding error message be added for all asserts?
I often encountered assert failures before, such as the path of the compilation, but in fact, I have to read the relevant code carefully to know the specific reason, because there is no related error message for assert.
Before fixed in #1836, some libs will meet errors when asc ./assembly/index.ts
, but it's ok when asc ./index.ts
.
The index.ts is:
export * from "./assembly/index";
And if the developer modifies the AST, the friendly error can let the developer notice the wrong behavior.