summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'codegen')
-rw-r--r--codegen/valaccode.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/codegen/valaccode.vala b/codegen/valaccode.vala
index 9b1da33f7..80e0f1c0f 100644
--- a/codegen/valaccode.vala
+++ b/codegen/valaccode.vala
@@ -445,7 +445,11 @@ namespace Vala {
}
public static bool get_ccode_has_type_id (TypeSymbol sym) {
- return sym.get_attribute_bool ("CCode", "has_type_id", true);
+ if (sym is ErrorDomain && sym.external_package) {
+ return sym.get_attribute_bool ("CCode", "has_type_id", false);
+ } else {
+ return sym.get_attribute_bool ("CCode", "has_type_id", true);
+ }
}
public static bool get_ccode_has_new_function (Method m) {