]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: SemanticAnalyzer.get_instance_base_type() is not allowed to return null
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 5 May 2020 07:32:48 +0000 (09:32 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 5 May 2020 07:35:25 +0000 (09:35 +0200)
This is private internal API.

vala/valasemanticanalyzer.vala

index d6741f23081da416a7068c60b4961f74dffd79b2..1404f13cd8d10c6732424336f686fc49de6d1c79 100644 (file)
@@ -849,7 +849,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                return true;
        }
 
-       private static DataType? get_instance_base_type (DataType instance_type, DataType base_type, CodeNode? node_reference) {
+       private static DataType get_instance_base_type (DataType instance_type, DataType base_type, CodeNode? node_reference) {
                // construct a new type reference for the base type with correctly linked type arguments
                DataType instance_base_type;
                if (base_type.type_symbol is ObjectTypeSymbol) {