diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-06-07 17:26:41 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-06-07 18:07:30 -0400 |
| commit | 31aefa6a2179dfae752020195fb193c6333bae7e (patch) | |
| tree | 3bf77a35c39424e736da020a0451d6fe32d7648b /test/cases/array.zig | |
| parent | b11c5d8f8256fc19e08eacfc50be209878f00e73 (diff) | |
| download | zig-31aefa6a2179dfae752020195fb193c6333bae7e.tar.gz zig-31aefa6a2179dfae752020195fb193c6333bae7e.zip | |
fix structs that contain types which require comptime
Now, if a struct has any fields which require comptime,
such as `type`, then the struct is marked as requiring
comptime as well. Same goes for unions.
This means that a function will implicitly be called
at comptime if the return type is a struct which contains
a field of type `type`.
closes #586
Diffstat (limited to 'test/cases/array.zig')
0 files changed, 0 insertions, 0 deletions
