Sema: zirArrayType does need source location
This commit is contained in:
11
test/cases/compile_errors/invalid_array_elem_ty.zig
Normal file
11
test/cases/compile_errors/invalid_array_elem_ty.zig
Normal file
@@ -0,0 +1,11 @@
|
||||
pub fn S() type {
|
||||
return struct {};
|
||||
}
|
||||
pub export fn entry() void {
|
||||
_ = [0]S;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2,llvm
|
||||
//
|
||||
// :4:1: error: expected type, found fn() type
|
||||
Reference in New Issue
Block a user