AstGen: use elem_{ptr,val}_node for array access syntax

This commit is contained in:
Veikka Tuominen
2022-06-30 23:59:39 +03:00
parent a6bf8c2593
commit 2029601cb2
18 changed files with 90 additions and 87 deletions

View File

@@ -24,9 +24,9 @@ pub export fn entry3() void {
// target=native
// backend=stage2
//
// :6:5: error: values of type '[2]fn() void' must be comptime known, but index value is runtime known
// :6:5: note: use '*const fn() void' for a function pointer type
// :13:5: error: values of type '[2]fn() void' must be comptime known, but index value is runtime known
// :13:5: note: use '*const fn() void' for a function pointer type
// :19:5: error: values of type '[2]fn() void' must be comptime known, but index value is runtime known
// :19:5: note: use '*const fn() void' for a function pointer type
// :7:10: error: values of type '[2]fn() void' must be comptime known, but index value is runtime known
// :7:10: note: use '*const fn() void' for a function pointer type
// :15:18: error: values of type '[2]fn() void' must be comptime known, but index value is runtime known
// :15:17: note: use '*const fn() void' for a function pointer type
// :21:19: error: values of type '[2]fn() void' must be comptime known, but index value is runtime known
// :21:18: note: use '*const fn() void' for a function pointer type