forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomputedPropertyWithEnumKey.symbols
More file actions
16 lines (14 loc) · 1017 Bytes
/
computedPropertyWithEnumKey.symbols
File metadata and controls
16 lines (14 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//// [tests/cases/compiler/computedPropertyWithEnumKey.ts] ////
=== computedPropertyWithEnumKey.ts ===
enum Type { Foo = 'foo', '3x14' = '3.14' } type TypeMap = { [Type.Foo]: any; [Type['3x14']]: any; };
>Type : Symbol(Type, Decl(computedPropertyWithEnumKey.ts, 0, 0))
>Foo : Symbol(Type.Foo, Decl(computedPropertyWithEnumKey.ts, 0, 11))
>'3x14' : Symbol(Type['3x14'], Decl(computedPropertyWithEnumKey.ts, 0, 24))
>TypeMap : Symbol(TypeMap, Decl(computedPropertyWithEnumKey.ts, 0, 42))
>[Type.Foo] : Symbol([Type.Foo], Decl(computedPropertyWithEnumKey.ts, 0, 59))
>Type.Foo : Symbol(Type.Foo, Decl(computedPropertyWithEnumKey.ts, 0, 11))
>Type : Symbol(Type, Decl(computedPropertyWithEnumKey.ts, 0, 0))
>Foo : Symbol(Type.Foo, Decl(computedPropertyWithEnumKey.ts, 0, 11))
>[Type['3x14']] : Symbol([Type['3x14']], Decl(computedPropertyWithEnumKey.ts, 0, 76))
>Type : Symbol(Type, Decl(computedPropertyWithEnumKey.ts, 0, 0))
>'3x14' : Symbol(Type['3x14'], Decl(computedPropertyWithEnumKey.ts, 0, 24))