-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
- Loading branch information
1 parent
1840de3
commit 6ee42f7
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { test, expect } from "bun:test"; | ||
|
||
test("override is an accessibility modifier", () => { | ||
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()); | ||
|
||
expect().pass(); | ||
}); |