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

36 lines
2.4 KiB
Plaintext
Raw Normal View History

2015-02-07 05:49:58 +01:00
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(4,28): error TS4031: Public property '[Symbol.iterator]' of exported class has or is using private name 'I'.
2015-04-09 23:28:29 +02:00
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(5,9): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
2015-02-07 05:49:58 +01:00
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(5,33): error TS4073: Parameter 'x' of public method from exported class has or is using private name 'I'.
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(6,40): error TS4055: Return type of public method from exported class has or is using private name 'I'.
2015-04-09 23:28:29 +02:00
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(9,13): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(10,13): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(10,37): error TS4037: Parameter '[Symbol.toPrimitive]' of public property setter from exported class has or is using private name 'I'.
2015-02-07 05:49:58 +01:00
2015-04-09 23:28:29 +02:00
==== tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts (7 errors) ====
2015-02-07 05:49:58 +01:00
module M {
interface I { }
export class C {
[Symbol.iterator]: I;
~
!!! error TS4031: Public property '[Symbol.iterator]' of exported class has or is using private name 'I'.
[Symbol.toPrimitive](x: I) { }
2015-04-09 23:28:29 +02:00
~~~~~~~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
2015-02-07 05:49:58 +01:00
~
!!! error TS4073: Parameter 'x' of public method from exported class has or is using private name 'I'.
[Symbol.isConcatSpreadable](): I {
~
!!! error TS4055: Return type of public method from exported class has or is using private name 'I'.
return undefined
}
2015-04-09 23:28:29 +02:00
get [Symbol.toPrimitive]() { return undefined; }
~~~~~~~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
set [Symbol.toPrimitive](x: I) { }
~~~~~~~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
~
!!! error TS4037: Parameter '[Symbol.toPrimitive]' of public property setter from exported class has or is using private name 'I'.
2015-02-07 05:49:58 +01:00
}
}