aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/struct.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behavior/struct.zig')
-rw-r--r--test/behavior/struct.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig
index ff70c14505..44f035f46f 100644
--- a/test/behavior/struct.zig
+++ b/test/behavior/struct.zig
@@ -1529,15 +1529,15 @@ test "function pointer in struct returns the struct" {
const A = struct {
const A = @This();
- f: *const fn () A,
+ ptr: *const fn () A,
fn f() A {
- return .{ .f = f };
+ return .{ .ptr = f };
}
};
var a = A.f();
_ = &a;
- try expect(a.f == A.f);
+ try expect(a.ptr == A.f);
}
test "no dependency loop on optional field wrapped in generic function" {