TypeScript/tests/cases/compiler/extendedInterfacesWithDuplicateTypeParameters.ts
2014-07-12 17:30:19 -07:00

11 lines
239 B
TypeScript

interface InterfaceWithMultipleTypars<A, A> { // should error
bar(): void;
}
interface InterfaceWithSomeTypars<B> { // should not error
bar(): void;
}
interface InterfaceWithSomeTypars<C, C> { // should error
bar2(): void;
}