[vala/staging] codegen: Sealed class in external package is not special
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Sealed class in external package is not special
- Date: Mon, 20 Sep 2021 20:11:49 +0000 (UTC)
commit 2ed5c4d693ab1aaf035664417570ca7427e18dd6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 20 21:57:27 2021 +0200
codegen: Sealed class in external package is not special
Don't falsely generate macros and typedefs leading to conflicts
Regression of 7ebb25ffa2226a8a098b8b1ea2cef64d1015b4de
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1229
codegen/valaccodebasemodule.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 06b745463..14a8efa91 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -694,7 +694,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
return false;
}
// sealed classes are special
- if (sym is Class && ((Class) sym).is_sealed) {
+ if (!sym.external_package && sym is Class && ((Class) sym).is_sealed) {
return false;
}
if (sym.external_package || in_generated_header
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]