Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
fieldParentPtr-non_pointer.zig
pretty
plain
permalink
blame
history
•
8 lines
•
149 B
1
const Foo = i32;
2
export fn foo(a: *i32) Foo {
3
return @fieldParentPtr("a", a);
4
}
5
6
// error
7
//
8
// :3:12: error: expected pointer type, found 'i32'