From: Rico Tzschichholz Date: Sun, 12 Dec 2021 17:47:53 +0000 (+0100) Subject: vala: Drop duplicate check for unsupported flag of creation methods X-Git-Tag: 0.55.1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3b7be0e17f41a1f817ad2a35beb54e1ed10f483;p=thirdparty%2Fvala.git vala: Drop duplicate check for unsupported flag of creation methods --- 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 ();