Files
zig/test/cases/compile_errors/invalid_array_elem_ty.zig
r00ster91 ee4ced9683 write function types consistently with a space before fn keyword
Currently, the compiler (like @typeName) writes it `fn(...) Type` but
zig fmt writes it `fn (...) Type` (notice the space after `fn`).
This inconsistency is now resolved and function types are consistently
written the zig fmt way. Before this there were more `fn (...) Type`
occurrences than `fn(...) Type` already.
2023-09-19 15:15:05 +03:00

13 lines
193 B
Zig

pub fn S() type {
return struct {};
}
pub export fn entry() void {
_ = [0]S;
}
// error
// target=native
// backend=stage2
//
// :5:12: error: expected type 'type', found 'fn () type'