Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 16, 2023
1 parent 17cb0b8 commit 2a2d42c
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 2a2d42c

Please sign in to comment.