TypeScript/tests/baselines/reference/errorOnContextuallyTypedReturnType.js
2014-07-12 17:30:19 -07:00

11 lines
290 B
JavaScript

//// [errorOnContextuallyTypedReturnType.ts]
var n1: () => boolean = function () { }; // expect an error here
var n2: () => boolean = function ():boolean { }; // expect an error here
//// [errorOnContextuallyTypedReturnType.js]
var n1 = function () {
};
var n2 = function () {
};