Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 506 Bytes

typescript-2.3.md

File metadata and controls

14 lines (9 loc) · 506 Bytes

TypeScript 2.3

完整的破坏性改动列表请到这里查看:breaking change issues.

空的泛型列表会被标记为错误

示例

class X<> {}  // Error: Type parameter list cannot be empty.
function f<>() {}  // Error: Type parameter list cannot be empty.
const x: X<> = new X<>();  // Error: Type parameter list cannot be empty.