# Sema: do not force resolution of struct field inits when calling function pointer field · gitcafe/zig

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

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

Visibility: public

Requested revision: 997eaf6d8724fe2076195de4d6d54bf2bf880eea

Requested commit: 997eaf6d8724fe2076195de4d6d54bf2bf880eea

Commit: 997eaf6d8724fe2076195de4d6d54bf2bf880eea

Tree: d423bc12df1141b2f8029f7a88e4f0f56413a316

Author: mlugg

Committer: Andrew Kelley

## Message

```
Sema: do not force resolution of struct field inits when calling function pointer field

b3462b7 caused a regression in a third-party project, since it forced
resolution of field initializers for any field call 'foo.bar()', despite
this only being necessary when 'bar' is a comptime field.

See https://github.com/ziglang/zig/pull/17692#issuecomment-1802096734.

```

## Parents

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

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