Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunrabbit123 committed Oct 10, 2023
1 parent a16ba06 commit 3a7f971
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/stc_ts_file_analyzer/src/analyzer/scope/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,12 @@ impl Expander<'_, '_, '_> {
}

let tys = if ignore_this {
self.analyzer.find_local_type_without_this(&i.into())
let res = self.analyzer.find_local_type_without_this(&i.into());
if res.is_some() {
res
} else {
self.analyzer.find_type(&i.into())?
}
} else {
self.analyzer.find_type(&i.into())?
};
Expand Down

0 comments on commit 3a7f971

Please sign in to comment.