Skip to content

Conversation

@topolarity
Copy link
Contributor

@topolarity topolarity commented Jul 8, 2022

Adds support for initializing .anon_struct types. Resolves #12030.

During this change, I noticed some loose ends still open from #11162, so I've added skipped behavior tests covering the missing functionality. I also filed #12049 since we don't currently have a way to add skipped compile error tests (AFAIK)

@topolarity topolarity force-pushed the anon-struct-init branch 4 times, most recently from 147dc8e to 9e11770 Compare July 9, 2022 01:57
This commit adds support for initializing `.anon_struct` types. There
is also some follow-up work to do for both tuples and structs regarding
comptime fields, so this also adds some tests to keep track of that
work.
@Vexu Vexu merged commit 3f11d1d into ziglang:master Jul 9, 2022
@topolarity topolarity deleted the anon-struct-init branch July 9, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stage2: panic when instantiating @TypeOf of anonymous struct

2 participants