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

stage2: implement coercion from tuples to tuples #12242

Closed
nektro opened this issue Jul 26, 2022 · 0 comments
Closed

stage2: implement coercion from tuples to tuples #12242

nektro opened this issue Jul 26, 2022 · 0 comments
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone

Comments

@nektro
Copy link
Contributor

nektro commented Jul 26, 2022

Zig Version

0.10.0-dev.3313+cff5d9c80

Steps to Reproduce

const std = @import("std");
const T = std.meta.Tuple(&.{u8});

pub fn main() void {
    foo(.{123});
}

pub fn foo(x: T) void {
    std.debug.assert(x[0] == 123);
}

Expected Behavior

./test.zig:5:10: error: TODO: implement coercion from tuples to tuples
    foo(.{123});
        ~^~~~~

Actual Behavior

No output. Successful run.

@nektro nektro added the bug Observed behavior contradicts documented or intended behavior label Jul 26, 2022
@Vexu Vexu added this to the 0.10.0 milestone Jul 29, 2022
@Vexu Vexu added frontend Tokenization, parsing, AstGen, Sema, and Liveness. enhancement Solving this issue will likely involve adding new logic or components to the codebase. and removed bug Observed behavior contradicts documented or intended behavior labels Jul 29, 2022
Vexu added a commit to Vexu/zig that referenced this issue Jul 29, 2022
Vexu added a commit to Vexu/zig that referenced this issue Jul 29, 2022
Vexu added a commit to Vexu/zig that referenced this issue Jul 29, 2022
Vexu added a commit to Vexu/zig that referenced this issue Jul 29, 2022
Vexu added a commit to Vexu/zig that referenced this issue Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Projects
None yet
Development

No branches or pull requests

2 participants