zig icon indicating copy to clipboard operation
zig copied to clipboard

stage2: implement coercion from tuples to tuples

Open nektro opened this issue 3 years ago • 0 comments

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 avatar Jul 26 '22 05:07 nektro