Sema: validate deref operator type and value
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export fn entry(x: [*]i32) i32 {
|
||||
return x.*;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :2:13: error: index syntax required for unknown-length pointer type '[*]i32'
|
||||
Reference in New Issue
Block a user