| ... | ... | @@ -4323,7 +4323,7 @@ pub fn analyzeExport( |
| 4323 | 4323 | const exported_decl = mod.declPtr(exported_decl_index); |
| 4324 | 4324 | // TODO run the same checks as we do for C ABI struct fields |
| 4325 | 4325 | switch (exported_decl.ty.zigTypeTag()) { |
| 4326 | | .Fn, .Int, .Enum, .Struct, .Union, .Array, .Float => {}, |
| 4326 | .Fn, .Int, .Enum, .Struct, .Union, .Array, .Float, .Pointer, .Optional => {}, |
| 4327 | 4327 | else => return sema.fail(block, src, "unable to export type '{}'", .{ |
| 4328 | 4328 | exported_decl.ty.fmt(sema.mod), |
| 4329 | 4329 | }), |