TypeScript/tests/baselines/reference/computedPropertyNames3_ES6.errors.txt
Daniel Rosenwasser ec678f3ebd Merge branch 'master' into thanksLua
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
2015-02-20 16:44:20 -08:00

30 lines
2.1 KiB
Plaintext

tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts(4,12): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts(5,9): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts(5,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts(6,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts(7,16): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts(7,16): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts (6 errors) ====
var id;
class C {
[0 + 1]() { }
static [() => { }]() { }
~~~~~~~~~~~
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
get [delete id]() { }
~~~~~~~~~~~
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
~~~~~~~~~~~
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
set [[0, 1]](v) { }
~~~~~~~~
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
static get [<String>""]() { }
~~~~~~~~~~~~
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
~~~~~~~~~~~~
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
static set [id.toString()](v) { }
}