We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
override
1.0.14+d8be3e51b
Linux 5.10.102.1-microsoft-standard-WSL2 x86_64 x86_64
Run the following TS code:
class FooParent {} class FooChild extends FooParent { } class BarParent { constructor(readonly foo: FooParent) {} } class BarChild extends BarParent { constructor(override foo: FooChild) { super(foo) } } new BarChild(new FooChild())
This is valid TypeScript and tsc compiles it just fine, I expect bun to do the same
tsc
10 | constructor(override foo: FooChild) { ^ error: Expected ")" but found "foo" at example.ts:10:23 176 10 | constructor(override foo: FooChild) { ^ error: Expected ";" but found ")" at example.ts:10:36 189 10 | constructor(override foo: FooChild) { ^ error: Expected identifier but found "{" at example.ts:10:38 191 13 | } ^ error: Unexpected } at example.ts:13:1 209
No response
The text was updated successfully, but these errors were encountered:
Fixes #7324
84a4857
Fixes #7324 (#7330)
6ee42f7
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
abeacf2
Fixes oven-sh#7324 (oven-sh#7330)
efda3be
Successfully merging a pull request may close this issue.
What version of Bun is running?
1.0.14+d8be3e51b
What platform is your computer?
Linux 5.10.102.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Run the following TS code:
What is the expected behavior?
This is valid TypeScript and
tsc
compiles it just fine, I expect bun to do the sameWhat do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: