TypeScript/tests/baselines/reference/indexWithoutParamType2.errors.txt

13 lines
617 B
Plaintext
Raw Normal View History

tests/cases/compiler/indexWithoutParamType2.ts(3,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
2015-01-13 19:30:32 +01:00
tests/cases/compiler/indexWithoutParamType2.ts(3,6): error TS2304: Cannot find name 'x'.
2015-01-13 19:30:32 +01:00
==== tests/cases/compiler/indexWithoutParamType2.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
class C {
2015-01-13 19:30:32 +01:00
// Used to be indexer, now it is a computed property
2014-07-13 01:04:16 +02:00
[x]: string
~~~
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
2015-01-13 19:30:32 +01:00
~
!!! error TS2304: Cannot find name 'x'.
2014-07-13 01:04:16 +02:00
}