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

30 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/compiler/constructorOverloads5.ts(4,21): error TS2300: Duplicate identifier 'RegExp'.
tests/cases/compiler/constructorOverloads5.ts(5,21): error TS2300: Duplicate identifier 'RegExp'.
tests/cases/compiler/constructorOverloads5.ts(6,18): error TS2300: Duplicate identifier 'RegExp'.
2014-10-01 02:15:18 +02:00
==== tests/cases/compiler/constructorOverloads5.ts (3 errors) ====
2014-07-13 01:04:16 +02:00
interface IArguments {}
declare module M {
export function RegExp(pattern: string): RegExp;
2014-10-01 02:15:18 +02:00
~~~~~~
!!! error TS2300: Duplicate identifier 'RegExp'.
2014-07-13 01:04:16 +02:00
export function RegExp(pattern: string, flags: string): RegExp;
2014-10-01 02:15:18 +02:00
~~~~~~
!!! error TS2300: Duplicate identifier 'RegExp'.
2014-07-13 01:04:16 +02:00
export class RegExp {
~~~~~~
!!! error TS2300: Duplicate identifier 'RegExp'.
2014-07-13 01:04:16 +02:00
constructor(pattern: string);
constructor(pattern: string, flags: string);
exec(string: string): string[];
test(string: string): boolean;
source: string;
global: boolean;
ignoreCase: boolean;
multiline: boolean;
lastIndex: boolean;
}
}