# name types inside functions after variable · gitcafe/zig

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

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

Visibility: public

Requested revision: 0845cbe27783486feb5b4b57b2839326a2c86a6b

Requested commit: 0845cbe27783486feb5b4b57b2839326a2c86a6b

Commit: 0845cbe27783486feb5b4b57b2839326a2c86a6b

Tree: b84792ffb976bdad957943043b86c515d8905ad4

Author: Ben Noordhuis

Committer: Ben Noordhuis

## Message

```
name types inside functions after variable

Before this commit:

    fn f() []const u8 {
        const S = struct {};
        return @typeName(S);  // "f()", unexpected.
    }

And now:

    fn f() []const u8 {
        const S = struct {};
        return @typeName(S);  // "S", expected.
    }

Fixes #675.

```

## Parents

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

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