Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 8, 2023
1 parent 7d62b64 commit f596720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,7 @@ impl Analyzer<'_, '_> {
let mut inferred = InferData::default();

for param in type_params {
dbg!(param);
if let Some(constraint) = &param.constraint {
constraint.assert_clone_cheap();
inferred.constraints.insert(param.name.clone(), *constraint.clone());
Expand Down
1 change: 1 addition & 0 deletions crates/stc_ts_file_analyzer/src/analyzer/generic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ impl Analyzer<'_, '_> {
let mut inferred = InferData::default();

for param in type_params {
dbg!(param);
if let Some(constraint) = &param.constraint {
constraint.assert_clone_cheap();
inferred.constraints.insert(param.name.clone(), *constraint.clone());
Expand Down

0 comments on commit f596720

Please sign in to comment.