11 lines
189 B
JavaScript
11 lines
189 B
JavaScript
//// [typeParameterHasSelfAsConstraint.ts]
|
|
function foo<T extends T>(x: T): number {
|
|
return x;
|
|
}
|
|
|
|
|
|
|
|
//// [typeParameterHasSelfAsConstraint.js]
|
|
function foo(x) {
|
|
return x;
|
|
}
|