[vala/staging] vala: Drop duplicate check for unsupported flag of creation methods



commit e3b7be0e17f41a1f817ad2a35beb54e1ed10f483
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Dec 12 18:47:53 2021 +0100

    vala: Drop duplicate check for unsupported flag of creation methods

 vala/valacreationmethod.vala | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala
index b64703634..2ff5033bc 100644
--- a/vala/valacreationmethod.vala
+++ b/vala/valacreationmethod.vala
@@ -217,12 +217,6 @@ public class Vala.CreationMethod : Method {
                context.analyzer.current_source_file = old_source_file;
                context.analyzer.current_symbol = old_symbol;
 
-               if (is_abstract || is_virtual || overrides) {
-                       error = true;
-                       Report.error (source_reference, "The creation method `%s' cannot be marked as 
override, virtual, or abstract", get_full_name ());
-                       return false;
-               }
-
                // check that all errors that can be thrown in the method body are declared
                if (body != null && !body.error) {
                        var body_errors = new ArrayList<DataType> ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]