aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/test_empty_block.zig
blob: cab1b0376791ac273f90aa6ee8f8a7319ed33757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const std = @import("std");
const expect = std.testing.expect;

test {
    const a = {};
    const b = void{};
    try expect(@TypeOf(a) == void);
    try expect(@TypeOf(b) == void);
    try expect(a == b);
}

// test