Also avoid redundantly doing compile-error checks on multiple targets for test cases where that is not helpful.
13 lines
182 B
Zig
13 lines
182 B
Zig
pub fn S() type {
|
|
return struct {};
|
|
}
|
|
pub export fn entry() void {
|
|
_ = [0]S;
|
|
}
|
|
|
|
// error
|
|
// target=native
|
|
// backend=stage2
|
|
//
|
|
// :4:1: error: expected type, found fn() type
|