Sema: zirArrayType does need source location

This commit is contained in:
Veikka Tuominen
2022-05-26 12:42:50 +03:00
parent ab88165326
commit 92c4e4f2c2
2 changed files with 15 additions and 2 deletions

View 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