aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/call_from_double_ptr.zig
blob: 51bb653a8aa386c24f8cf8f1305bc602f517e643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const S = struct {
    fn b() void {}
};

export fn entry(a: **S) void {
    _ = a.b();
}

// error
// backend=stage2
// target=native
//
// 6:10: error: no field or member function named 'b' in '*tmp.S'
// 6:10: note: method invocation only supports up to one level of implicit pointer dereferencing
// 6:10: note: use '.*' to dereference pointer