TypeScript/tests/baselines/reference/constructorOverloads5.errors.txt
2014-07-12 17:30:19 -07:00

21 lines
727 B
Plaintext

==== tests/cases/compiler/constructorOverloads5.ts (1 errors) ====
interface IArguments {}
declare module M {
export function RegExp(pattern: string): RegExp;
export function RegExp(pattern: string, flags: string): RegExp;
export class RegExp {
~~~~~~
!!! Duplicate identifier 'RegExp'.
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;
}
}