From 0461bf8addccb4df566827f1601f415d07b1ffbc Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 25 Jan 2025 07:05:36 +0200 Subject: [PATCH] fix errors with V from https://github.com/vlang/v/pull/23510 --- src/analyzer/psi/TypeInferer.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyzer/psi/TypeInferer.v b/src/analyzer/psi/TypeInferer.v index a6940a1f..a9b65940 100644 --- a/src/analyzer/psi/TypeInferer.v +++ b/src/analyzer/psi/TypeInferer.v @@ -643,7 +643,7 @@ pub fn (t &TypeInferer) infer_index_type(typ types.Type) types.Type { pub fn (t &TypeInferer) convert_type(plain_type ?PsiElement, mut visited map[string]types.Type) types.Type { typ := plain_type or { return types.unknown_type } - if plain_type !is PlainType { + if typ !is PlainType { return types.unknown_type }