2015-04-27 03:31:47 +02:00
tests/cases/compiler/collisionExportsRequireAndEnum_externalmodule.ts(1,13): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module.
tests/cases/compiler/collisionExportsRequireAndEnum_externalmodule.ts(5,13): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module.
2014-09-12 22:35:07 +02:00
2014-09-04 22:00:59 +02:00
==== tests/cases/compiler/collisionExportsRequireAndEnum_externalmodule.ts (2 errors) ====
2014-08-30 03:45:38 +02:00
export enum require { // Error
~~~~~~~
2015-04-27 03:31:47 +02:00
!!! error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module.
2014-08-30 03:45:38 +02:00
_thisVal1,
_thisVal2,
}
export enum exports { // Error
~~~~~~~
2015-04-27 03:31:47 +02:00
!!! error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module.
2014-08-30 03:45:38 +02:00
_thisVal1,
_thisVal2,
2014-09-04 22:00:59 +02:00
}
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,
}
2014-08-30 03:45:38 +02:00
}