aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs/1025.zig
blob: 62d3687ddb6f52680cd590a373eee103ef29fad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const builtin = @import("builtin");

const A = struct {
    B: type,
};

fn getA() A {
    return A{ .B = u8 };
}

test "bug 1025" {
    const a = getA();
    try @import("std").testing.expect(a.B == u8);
}