14 lines
347 B
JavaScript
14 lines
347 B
JavaScript
//// [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]
|