TypeScript/tests/cases/compiler/extendedInterfacesWithDuplicateTypeParameters.ts

11 lines
239 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface InterfaceWithMultipleTypars<A, A> { // should error
bar(): void;
}
interface InterfaceWithSomeTypars<B> { // should not error
bar(): void;
}
interface InterfaceWithSomeTypars<C, C> { // should error
bar2(): void;
}