Attempt at adding comptime union field access

This commit is contained in:
Alexandros Naskos
2018-04-24 15:03:46 +03:00
parent fb88f5a0d2
commit ec2a3ed500
2 changed files with 67 additions and 2 deletions

View File

@@ -6347,6 +6347,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
buf_appendf(contents, "};\n\n");
}
{
// TODO: Add method info where methods are supported.
buf_appendf(contents,
"pub const IntInfo = struct {\n"
" is_signed: bool,\n"