Skip to content

Commit

Permalink
fix missing option unwrap before cast
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 4, 2025
1 parent b9644a2 commit 6b75e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyzer/psi/QualifiedType.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn (n &QualifiedType) qualifier() ?PsiElement {

fn (n &QualifiedType) reference() PsiReference {
ref_expr := n.right()
return new_reference(n.containing_file, ref_expr as ReferenceExpressionBase, true)
return new_reference(n.containing_file, ref_expr? as ReferenceExpressionBase, true)

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (darwin-arm64, debug)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (darwin-arm64, release)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (darwin-arm64, dev)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (windows-x86_64, debug)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (darwin-x86_64, debug)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (windows-x86_64, release)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (windows-x86_64, dev)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (windows-latest, debug)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (windows-latest, dev)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (windows-latest, release)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (windows-latest, gcc)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (windows-latest, gcc)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (windows-latest, gcc)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (windows-latest, gcc)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (darwin-x86_64, dev)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (darwin-x86_64, release)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (macos-latest, debug)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (macos-latest, release)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (macos-latest, dev)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (macos-latest, clang)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (macos-latest, clang)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (macos-latest, clang)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (macos-latest, clang)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (linux-x86_64, debug)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (linux-x86_64, dev)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build-v-analyzer (linux-x86_64, release)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (ubuntu-20.04, debug)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (ubuntu-20.04, release)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / build (ubuntu-20.04, dev)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, gcc)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, gcc)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, gcc)

to propagate the Option, `reference` must return an Option type

Check failure on line 19 in src/analyzer/psi/QualifiedType.v

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04, gcc)

to propagate the Option, `reference` must return an Option type
}

fn (n &QualifiedType) resolve() ?PsiElement {
Expand Down

0 comments on commit 6b75e41

Please sign in to comment.