diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-04-21 09:47:16 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-04-21 09:47:16 -0400 |
commit | 751b303362f98d8b62364d43cffd4d93034d4e10 (patch) | |
tree | ccc63767c201f1bc4c5ddbb337cadd04f9e76de4 /patches | |
parent | ec543ff49b5cbdc1c8fa3268a155a794ee30af49 (diff) | |
download | ziglings-751b303362f98d8b62364d43cffd4d93034d4e10.tar.gz ziglings-751b303362f98d8b62364d43cffd4d93034d4e10.tar.bz2 ziglings-751b303362f98d8b62364d43cffd4d93034d4e10.tar.xz ziglings-751b303362f98d8b62364d43cffd4d93034d4e10.zip |
add ex069 comptime 4
Diffstat (limited to 'patches')
-rw-r--r-- | patches/patches/069_comptime4.patch | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/patches/patches/069_comptime4.patch b/patches/patches/069_comptime4.patch new file mode 100644 index 0000000..3d662a7 --- /dev/null +++ b/patches/patches/069_comptime4.patch @@ -0,0 +1,6 @@ +45,46c45,46 +< fn makeSequence(comptime T: type, ??? size: usize) [???]T { +< var sequence: [???]T = undefined; +--- +> fn makeSequence(comptime T: type, comptime size: usize) [size]T { +> var sequence: [size]T = undefined; |