stage2: better source location for var decls

This commit is contained in:
Veikka Tuominen
2022-07-28 17:28:37 +03:00
parent 57f9405a8f
commit f1768b40b2
10 changed files with 125 additions and 45 deletions

View File

@@ -0,0 +1,9 @@
comptime {
@src();
}
// error
// backend=stage2
// target=native
//
// :2:5: error: @src outside function