forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use value meaning for computed property name for visibility check (mi…
…crosoft#49678) * Test * Use value meaning for computed property name Fixes microsoft#49562
- Loading branch information
1 parent
df21926
commit 7e91485
Showing
5 changed files
with
58 additions
and
2 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
16 changes: 16 additions & 0 deletions
16
tests/baselines/reference/computedPropertyNameAndTypeParameterConflict.js
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 @@ | ||
//// [computedPropertyNameAndTypeParameterConflict.ts] | ||
declare const O: unique symbol; | ||
declare class Bar<O> { | ||
[O]: number; | ||
} | ||
|
||
|
||
|
||
//// [computedPropertyNameAndTypeParameterConflict.js] | ||
|
||
|
||
//// [computedPropertyNameAndTypeParameterConflict.d.ts] | ||
declare const O: unique symbol; | ||
declare class Bar<O> { | ||
[O]: number; | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/baselines/reference/computedPropertyNameAndTypeParameterConflict.symbols
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,14 @@ | ||
=== tests/cases/compiler/computedPropertyNameAndTypeParameterConflict.ts === | ||
declare const O: unique symbol; | ||
>O : Symbol(O, Decl(computedPropertyNameAndTypeParameterConflict.ts, 0, 13)) | ||
|
||
declare class Bar<O> { | ||
>Bar : Symbol(Bar, Decl(computedPropertyNameAndTypeParameterConflict.ts, 0, 31)) | ||
>O : Symbol(O, Decl(computedPropertyNameAndTypeParameterConflict.ts, 1, 18)) | ||
|
||
[O]: number; | ||
>[O] : Symbol(Bar[O], Decl(computedPropertyNameAndTypeParameterConflict.ts, 1, 22)) | ||
>O : Symbol(O, Decl(computedPropertyNameAndTypeParameterConflict.ts, 0, 13)) | ||
} | ||
|
||
|
13 changes: 13 additions & 0 deletions
13
tests/baselines/reference/computedPropertyNameAndTypeParameterConflict.types
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,13 @@ | ||
=== tests/cases/compiler/computedPropertyNameAndTypeParameterConflict.ts === | ||
declare const O: unique symbol; | ||
>O : unique symbol | ||
|
||
declare class Bar<O> { | ||
>Bar : Bar<O> | ||
|
||
[O]: number; | ||
>[O] : number | ||
>O : unique symbol | ||
} | ||
|
||
|
6 changes: 6 additions & 0 deletions
6
tests/cases/compiler/computedPropertyNameAndTypeParameterConflict.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,6 @@ | ||
// @declaration: true | ||
declare const O: unique symbol; | ||
declare class Bar<O> { | ||
[O]: number; | ||
} | ||
|