diff --git a/analyzer/psi/search/common.v b/analyzer/psi/search/common.v index 3a372235..08a18beb 100644 --- a/analyzer/psi/search/common.v +++ b/analyzer/psi/search/common.v @@ -43,7 +43,7 @@ fn is_implemented(iface_methods []psi.PsiElement, iface_fields []psi.PsiElement, for iface_method in iface_methods { if iface_method is psi.InterfaceMethodDeclaration { - symbol_method := symbol_methods_set[iface_method.fingerprint()] + symbol_method := symbol_methods_set[iface_method.fingerprint()] or { return false } if !is_method_compatible(*iface_method, symbol_method) { return false } @@ -52,7 +52,7 @@ fn is_implemented(iface_methods []psi.PsiElement, iface_fields []psi.PsiElement, for iface_field in iface_fields { if iface_field is psi.FieldDeclaration { - symbol_field := symbol_fields_set[iface_field.name()] + symbol_field := symbol_fields_set[iface_field.name()] or { return false } if !is_field_compatible(*iface_field, symbol_field) { return false } diff --git a/testing/TestFixture.v b/testing/TestFixture.v index 626f1327..5237d90a 100644 --- a/testing/TestFixture.v +++ b/testing/TestFixture.v @@ -35,7 +35,7 @@ pub fn new_fixture() &Fixture { indexing_mng := analyzer.IndexingManager.new() mut ls := server.LanguageServer.new(indexing_mng) - stream := &client.TestStream{} + mut stream := &client.TestStream{} mut jsonprc_server := &jsonrpc.Server{ stream: stream handler: ls