[vala/0.50] codegen: Report error for unsupported symbol_reference of MemberInitializer
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.50] codegen: Report error for unsupported symbol_reference of MemberInitializer
- Date: Sun, 28 Feb 2021 08:58:22 +0000 (UTC)
commit da881ea188e18f2b8b0b92c98ffd8b2d20c3690d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Feb 16 22:42:00 2021 +0100
codegen: Report error for unsupported symbol_reference of MemberInitializer
codegen/valaccodebasemodule.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 157136c58..38313f8a5 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -5163,6 +5163,8 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
if (!p.set_accessor.value_type.value_owned && requires_destroy
(init.initializer.target_value.value_type)) {
ccode.add_expression (destroy_value
(init.initializer.target_value));
}
+ } else {
+ Report.error (init.source_reference, "internal: Unsupported symbol");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]