aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAlexandros Naskos <alex_naskos@hotmail.com>2018-06-19 17:45:19 +0300
committerAlexandros Naskos <alex_naskos@hotmail.com>2018-06-19 17:45:19 +0300
commit13923132363b26b9982951fd79f01dbab0046e81 (patch)
treee9da44e2040b005285ccbdefea9c68b458e0db0b /src/codegen.cpp
parent1ca90b585692c9611c64412844d2f3a7b3e11340 (diff)
downloadzig-13923132363b26b9982951fd79f01dbab0046e81.tar.gz
zig-13923132363b26b9982951fd79f01dbab0046e81.zip
@typeInfo now uses optional types instead of @typeOf(undefined)
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 84335d4e06..dcb5e8cb46 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -6627,7 +6627,7 @@ Buf *codegen_generate_builtin_source(CodeGen *g) {
"\n"
" pub const Union = struct {\n"
" layout: ContainerLayout,\n"
- " tag_type: type,\n"
+ " tag_type: ?type,\n"
" fields: []UnionField,\n"
" defs: []Definition,\n"
" };\n"
@@ -6644,20 +6644,20 @@ Buf *codegen_generate_builtin_source(CodeGen *g) {
" pub const FnArg = struct {\n"
" is_generic: bool,\n"
" is_noalias: bool,\n"
- " arg_type: type,\n"
+ " arg_type: ?type,\n"
" };\n"
"\n"
" pub const Fn = struct {\n"
" calling_convention: CallingConvention,\n"
" is_generic: bool,\n"
" is_var_args: bool,\n"
- " return_type: type,\n"
- " async_allocator_type: type,\n"
+ " return_type: ?type,\n"
+ " async_allocator_type: ?type,\n"
" args: []FnArg,\n"
" };\n"
"\n"
" pub const Promise = struct {\n"
- " child: type,\n"
+ " child: ?type,\n"
" };\n"
"\n"
" pub const Definition = struct {\n"