ec678f3ebd
Conflicts: src/compiler/emitter.ts tests/baselines/reference/computedPropertyNames12_ES5.errors.txt tests/baselines/reference/computedPropertyNames14_ES5.errors.txt tests/baselines/reference/computedPropertyNames15_ES5.errors.txt tests/baselines/reference/computedPropertyNames17_ES5.errors.txt tests/baselines/reference/computedPropertyNames32_ES5.errors.txt tests/baselines/reference/computedPropertyNames35_ES5.errors.txt tests/baselines/reference/computedPropertyNames3_ES5.errors.txt tests/baselines/reference/computedPropertyNames42_ES5.errors.txt tests/baselines/reference/computedPropertyNames5_ES5.errors.txt tests/baselines/reference/computedPropertyNames6_ES5.errors.txt tests/baselines/reference/computedPropertyNames8_ES5.errors.txt tests/baselines/reference/computedPropertyNames9_ES5.errors.txt tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.errors.txt tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.errors.txt tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.errors.txt
16 lines
528 B
Plaintext
16 lines
528 B
Plaintext
tests/cases/conformance/Symbols/ES5SymbolProperty1.ts(7,6): error TS2471: A computed property name of the form 'Symbol.foo' must be of type 'symbol'.
|
|
|
|
|
|
==== tests/cases/conformance/Symbols/ES5SymbolProperty1.ts (1 errors) ====
|
|
interface SymbolConstructor {
|
|
foo: string;
|
|
}
|
|
var Symbol: SymbolConstructor;
|
|
|
|
var obj = {
|
|
[Symbol.foo]: 0
|
|
~~~~~~~~~~
|
|
!!! error TS2471: A computed property name of the form 'Symbol.foo' must be of type 'symbol'.
|
|
}
|
|
|
|
obj[Symbol.foo]; |