# fix \`@export\` for arrays and allow sections on extern variables · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/42ea2d0d1c3b8cafdfc9a383cbb1bab274eb0140)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 42ea2d0d1c3b8cafdfc9a383cbb1bab274eb0140

Requested commit: 42ea2d0d1c3b8cafdfc9a383cbb1bab274eb0140

Commit: 42ea2d0d1c3b8cafdfc9a383cbb1bab274eb0140

Tree: b4cda1880f432c47c228747c356200b01604bafb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix `@export` for arrays and allow sections on extern variables

previously `@export` for an array would panic with a TODO message.
now it will do the export. However, it uses the variable's name
rather than the name passed to `@export`. Issue #2679 remains open
for that problem.

```

## Parents

- [9e8db5b7505a6c2e601c8a94b9d8a4282b5df184](https://git.cafe/gitcafe/zig/commit/9e8db5b7505a6c2e601c8a94b9d8a4282b5df184?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/42ea2d0d1c3b8cafdfc9a383cbb1bab274eb0140?format=markdown)
