aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/hasDecl_with_non-container.zig
blob: a650c19c4b4d72e6b39529361920ce7850e78e26 (plain)
1
2
3
4
5
6
7
8
9
export fn entry() void {
    _ = @hasDecl(i32, "hi");
}

// error
// backend=stage2
// target=native
//
// :2:18: error: expected struct, enum, union, or opaque; found 'i32'