Skip to content

Commit

Permalink
fix errors with V from vlang/v#23510
Browse files Browse the repository at this point in the history
spytheman committed Jan 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5351039 commit 0461bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyzer/psi/TypeInferer.v
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 0461bf8

Please sign in to comment.