mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
553 B
TypeScript
24 lines
553 B
TypeScript
//// [tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts] ////
|
|
|
|
//// [functionExpressionAndLambdaMatchesFunction.ts]
|
|
class CDoc {
|
|
constructor() {
|
|
function doSomething(a: Function) {
|
|
}
|
|
doSomething(() => undefined);
|
|
doSomething(function () { });
|
|
}
|
|
}
|
|
|
|
|
|
//// [functionExpressionAndLambdaMatchesFunction.js]
|
|
"use strict";
|
|
class CDoc {
|
|
constructor() {
|
|
function doSomething(a) {
|
|
}
|
|
doSomething(() => undefined);
|
|
doSomething(function () { });
|
|
}
|
|
}
|