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.
13 lines
193 B
Zig
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'
|