1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v: add more precise source line info for -g -assert aborts

This commit is contained in:
Delyan Angelov 2021-04-15 20:38:34 +03:00
parent 1d2ef79545
commit db908e507f
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -53,6 +53,7 @@ fn (mut g Gen) gen_assert_stmt(original_assert_statement ast.AssertStmt) {
}
fn (mut g Gen) gen_assert_postfailure_mode(node ast.AssertStmt) {
g.write_v_source_line_info(node.pos)
match g.pref.assert_failure_mode {
.default {}
.aborts {