zig
zig copied to clipboard
stage3: TODO @export with field access
Zig Version
0.10.0-dev.3659+e5e6eb983
Steps to Reproduce
const F = struct {
fn function() callconv(.C) void {}
};
test {
comptime {
_ = @export(F.function, .{ .name = "function", .linkage = .Strong });
}
}
Expected Behavior
Tess pass
Actual Behavior
/home/david/dev/exp/src/main.zig:7:13: error: TODO: implement exporting with field access
_ = @export(F.function, .{ .name = "function", .linkage = .Strong });
Could we also get @export(@field(Module, name), .{ .name = name})) ?
Currently I get error: symbol to export must identify a declaration