Skip to content

Commit

Permalink
Remove wrong code
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 27, 2023
1 parent 1d39277 commit 775e92c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/stc_ts_file_analyzer/src/analyzer/assign/type_el.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,6 @@ impl Analyzer<'_, '_> {
}

Type::Class(rhs_cls) => {
// TODO(kdy1): Check if constructor exists.
if rhs_cls.def.is_abstract {
return Err(ErrorKind::CannotAssignAbstractConstructorToNonAbstractConstructor { span }.into());
}

// TODO(kdy1): Optimize
// for el in lhs {
// self.assign_class_members_to_type_element(opts, el, &rhs.body)?;
Expand Down

0 comments on commit 775e92c

Please sign in to comment.