22 lines
520 B
JavaScript
22 lines
520 B
JavaScript
//// [functionExpressionAndLambdaMatchesFunction.ts]
|
|
class CDoc {
|
|
constructor() {
|
|
function doSomething(a: Function) {
|
|
}
|
|
doSomething(() => undefined);
|
|
doSomething(function () { });
|
|
}
|
|
}
|
|
|
|
|
|
//// [functionExpressionAndLambdaMatchesFunction.js]
|
|
var CDoc = (function () {
|
|
function CDoc() {
|
|
function doSomething(a) {
|
|
}
|
|
doSomething(function () { return undefined; });
|
|
doSomething(function () {
|
|
});
|
|
}
|
|
return CDoc;
|
|
})();
|