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

promise->T syntax not parsed #857

Closed
andrewrk opened this Issue Mar 24, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@andrewrk
Member

andrewrk commented Mar 24, 2018

While working on #821 I ran into this:

This test should pass:

const std = @import("std");

test "aoeou" {
    const p = (async<std.debug.global_allocator> failing()) catch unreachable;
    comptime assert(@typeOf(p) == promise->void);
    cancel p;
}

async fn failing() void {
}

Instead:

/home/andy/dev/zig/build/test2.zig:5:42: error: expected token ',', found '->'
    comptime assert(@typeOf(p) == promise->void);
                                         ^

@andrewrk andrewrk added the bug label Mar 24, 2018

@andrewrk andrewrk added this to the 0.3.0 milestone Mar 24, 2018

@andrewrk andrewrk closed this in 897e783 Mar 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment