]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Drop duplicate check for unsupported flag of creation methods
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)
vala/valacreationmethod.vala

index b647036340468b7921301737daa874296dd65b6d..2ff5033bc9fc82fee2b7f46e21a8f3bda09a6878 100644 (file)
@@ -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> ();