]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix regression
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 7 Aug 2025 11:26:57 +0000 (13:26 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 7 Aug 2025 11:26:57 +0000 (13:26 +0200)
vala/valaversionattribute.vala

index c7a63373be672eaa97927a8454c0b3bc9e480737..30b6a6d5a5ee579c63c9b8a876c4402459b4246b 100644 (file)
@@ -61,7 +61,7 @@ public class Vala.VersionAttribute {
                                        || symbol.has_attribute_argument ("Version", "replacement")
                                        // [Deprecated] is deprecated
                                        || symbol.has_attribute ("Deprecated");
-                       } else if (symbol.parent_symbol != null) {
+                       } else if (symbol.parent_symbol is TypeSymbol) {
                                _deprecated = symbol.parent_symbol.version.deprecated;
                        } else {
                                _deprecated = false;