14 lines
347 B
TypeScript
14 lines
347 B
TypeScript
//// [extendedInterfacesWithDuplicateTypeParameters.ts]
|
|
interface InterfaceWithMultipleTypars<A, A> { // should error
|
|
bar(): void;
|
|
}
|
|
|
|
interface InterfaceWithSomeTypars<B> { // should not error
|
|
bar(): void;
|
|
}
|
|
|
|
interface InterfaceWithSomeTypars<C, C> { // should error
|
|
bar2(): void;
|
|
}
|
|
|
|
//// [extendedInterfacesWithDuplicateTypeParameters.js]
|