Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/oxc_transformer/src/typescript/annotations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ impl<'a> Traverse<'a> for TypeScriptAnnotations<'a, '_> {
.map(|assignment| assignment.create_this_property_assignment(ctx)),
);
}
self.has_super_call = false;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ class Bar extends Foo {
super(foo, bar, zoo, bang, too);
}
}
class Baz extends Bar {
constructor(public foo, private bar, protected zoo, readonly bang, override boom, too) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Foo {
console.log(this.foo, this.bar, this.zoo, this.bang);
}
}

class Bar extends Foo {
constructor(foo, bar, zoo, bang, boom, too) {
super(foo, bar, zoo, bang, too);
Expand All @@ -18,3 +19,13 @@ class Bar extends Foo {
this.boom = boom;
}
}

class Baz extends Bar {
constructor(foo, bar, zoo, bang, boom, too) {
this.foo = foo;
this.bar = bar;
this.zoo = zoo;
this.bang = bang;
this.boom = boom;
}
}
Loading