TypeScript/tests/baselines/reference/extendedInterfacesWithDuplicateTypeParameters.js

15 lines
347 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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]