18 lines
530 B
Text
18 lines
530 B
Text
|
==== tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.ts (1 errors) ====
|
||
|
class clodule<T> {
|
||
|
id: string;
|
||
|
value: T;
|
||
|
|
||
|
static fn<U>(id: U) { }
|
||
|
}
|
||
|
|
||
|
module clodule {
|
||
|
// error: duplicate identifier expected
|
||
|
export function fn<T>(x: T, y: T): T {
|
||
|
~~
|
||
|
!!! Duplicate identifier 'fn'.
|
||
|
return x;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|