aboutsummaryrefslogtreecommitdiff
path: root/test/cases/array.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-06-07 17:26:41 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-06-07 18:07:30 -0400
commit31aefa6a2179dfae752020195fb193c6333bae7e (patch)
tree3bf77a35c39424e736da020a0451d6fe32d7648b /test/cases/array.zig
parentb11c5d8f8256fc19e08eacfc50be209878f00e73 (diff)
downloadzig-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