mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
274 B
TypeScript
10 lines
274 B
TypeScript
//// [tests/cases/compiler/genericConstraint3.ts] ////
|
|
|
|
//// [genericConstraint3.ts]
|
|
interface C<P> { x: P; }
|
|
interface A<T, U extends C<T>> { x: U; }
|
|
interface B extends A<{}, { x: {} }> { } // Should not produce an error
|
|
|
|
//// [genericConstraint3.js]
|
|
"use strict";
|