@@ -337,6 +337,7 @@
this->register_builtin_type(gogo, "uintptr", BUILTIN_UINTPTR);
this->register_builtin_type(gogo, "bool", BUILTIN_BOOL);
this->register_builtin_type(gogo, "string", BUILTIN_STRING);
+ this->register_builtin_type(gogo, "error", BUILTIN_ERROR);
}
// Register one builtin type in the export table.
@@ -39,8 +39,9 @@
BUILTIN_STRING = -16,
BUILTIN_COMPLEX64 = -17,
BUILTIN_COMPLEX128 = -18,
+ BUILTIN_ERROR = -19,
- SMALLEST_BUILTIN_CODE = -18
+ SMALLEST_BUILTIN_CODE = -19
};
// This class manages exporting Go declarations. It handles the main
@@ -706,6 +706,7 @@
this->register_builtin_type(gogo, "uintptr", BUILTIN_UINTPTR);
this->register_builtin_type(gogo, "bool", BUILTIN_BOOL);
this->register_builtin_type(gogo, "string", BUILTIN_STRING);
+ this->register_builtin_type(gogo, "error", BUILTIN_ERROR);
}
// Register a single builtin type.