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

// error
//
// :2:18: error: expected struct, enum, union, or opaque; found 'i32'