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

pull/9756/head
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
1 changed files with 1 additions and 0 deletions

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 {