# AstGen: disallow alignment on function types · gitcafe/zig

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

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

Visibility: public

Requested revision: d10c52c194a093f58df40bc6122f24380f0cc097

Requested commit: d10c52c194a093f58df40bc6122f24380f0cc097

Commit: d10c52c194a093f58df40bc6122f24380f0cc097

Tree: 98909ac98dabdf19d082ce94dddf11a54cc11926

Author: Jacob Young

Committer: Jacob Young

## Message

```
AstGen: disallow alignment on function types

A pointer type already has an alignment, so this information does not
need to be duplicated on the function type.  This already has precedence
with addrspace which is already disallowed on function types for this
reason.  Also fixes `@TypeOf(&func)` to have the correct addrspace and
alignment.

```

## Parents

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

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