Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zig fmt] failure to format async function pointer #2521

Closed
emekoi opened this issue May 19, 2019 · 2 comments
Closed

[zig fmt] failure to format async function pointer #2521

emekoi opened this issue May 19, 2019 · 2 comments
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@emekoi
Copy link
Contributor

emekoi commented May 19, 2019

std\event\io.zig:15:77: error: Expected parameter list, found Comma
        readFn: async<*Allocator> fn (self: *Self, buffer: []u8) Error!usize,
                                                                            ~
std\event\io.zig:15:17: error: Expected type expression, found Keyword_async
        readFn: async<*Allocator> fn (self: *Self, buffer: []u8) Error!usize,
                ~~~~~
std\event\net.zig:11:94: error: Expected parameter list, found Comma
    handleRequestFn: async <*mem.Allocator> fn(*Server, *const std.net.Address, os.File) void,
                                                                                             ~
std\event\net.zig:11:22: error: Expected type expression, found Keyword_async
    handleRequestFn: async <*mem.Allocator> fn(*Server, *const std.net.Address, os.File) void,
                     ~~~~~

this will be solved by #2377 correct?

@andrewrk
Copy link
Member

this will be solved by #2377 correct?

Yes, that syntax is going to change.

@andrewrk andrewrk added this to the 0.6.0 milestone May 28, 2019
@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label May 28, 2019
@Vexu
Copy link
Member

Vexu commented Sep 23, 2019

This has been fixed.

@andrewrk andrewrk modified the milestones: 0.6.0, 0.5.0 Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

3 participants