Files
tsgo/testdata/baselines/reference/submodule/compiler/genericConstraintDeclaration.js

24 lines
438 B
TypeScript

//// [tests/cases/compiler/genericConstraintDeclaration.ts] ////
//// [genericConstraintDeclaration.ts]
class List<T extends {}>{
static empty<T extends {}>(): List<T>{return null;}
}
//// [genericConstraintDeclaration.js]
"use strict";
class List {
static empty() { return null; }
}
//// [genericConstraintDeclaration.d.ts]
declare class List<T extends {}> {
static empty<T extends {}>(): List<T>;
}