-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(57635): duplicate property name error when trying to overwrite ea…
…rly-bound prop with late-bound prop (#57717)
- Loading branch information
Showing
4 changed files
with
21 additions
and
13 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
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
16 changes: 16 additions & 0 deletions
16
tests/cases/fourslash/allowLateBoundSymbolsOverwriteEarlyBoundSymbols.ts
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,16 @@ | ||
/// <reference path="fourslash.ts"/> | ||
|
||
//// export {}; | ||
|
||
//// const prop = "abc"; | ||
|
||
//// function foo(): void {}; | ||
//// foo.abc = 10; | ||
//// foo[prop] = 10; | ||
|
||
//// interface T0 { | ||
//// [prop]: number; | ||
//// abc: number; | ||
//// } | ||
|
||
verify.noErrors(); |