TypeScript/tests/baselines/reference/collisionExportsRequireAndEnum.errors.txt
2014-09-11 16:11:08 -07:00

63 lines
1.5 KiB
Plaintext

==== tests/cases/compiler/collisionExportsRequireAndEnum_externalmodule.ts (2 errors) ====
export enum require { // Error
~~~~~~~
!!! error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of an external module.
_thisVal1,
_thisVal2,
}
export enum exports { // Error
~~~~~~~
!!! error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of an external module.
_thisVal1,
_thisVal2,
}
module m1 {
enum require {
_thisVal1,
_thisVal2,
}
enum exports {
_thisVal1,
_thisVal2,
}
}
module m2 {
export enum require {
_thisVal1,
_thisVal2,
}
export enum exports {
_thisVal1,
_thisVal2,
}
}
==== tests/cases/compiler/collisionExportsRequireAndEnum_globalFile.ts (0 errors) ====
enum require {
_thisVal1,
_thisVal2,
}
enum exports {
_thisVal1,
_thisVal2,
}
module m3 {
enum require {
_thisVal1,
_thisVal2,
}
enum exports {
_thisVal1,
_thisVal2,
}
}
module m4 {
export enum require {
_thisVal1,
_thisVal2,
}
export enum exports {
_thisVal1,
_thisVal2,
}
}