TypeScript/tests/cases/compiler/errorOnContextuallyTypedReturnType.ts
2014-07-12 17:30:19 -07:00

3 lines
140 B
TypeScript

var n1: () => boolean = function () { }; // expect an error here
var n2: () => boolean = function ():boolean { }; // expect an error here