2014-07-13 01:04:16 +02:00
|
|
|
//// [functionExpressionAndLambdaMatchesFunction.ts]
|
|
|
|
class CDoc {
|
|
|
|
constructor() {
|
|
|
|
function doSomething(a: Function) {
|
|
|
|
}
|
|
|
|
doSomething(() => undefined);
|
|
|
|
doSomething(function () { });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionExpressionAndLambdaMatchesFunction.js]
|
|
|
|
var CDoc = (function () {
|
|
|
|
function CDoc() {
|
|
|
|
function doSomething(a) {
|
|
|
|
}
|
2015-03-09 02:23:23 +01:00
|
|
|
doSomething(function () {
|
|
|
|
return undefined;
|
|
|
|
});
|
|
|
|
doSomething(function () {
|
|
|
|
});
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
return CDoc;
|
|
|
|
})();
|