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

14 lines
357 B
TypeScript

// @sourcemap: true
var greetings = 0;
function greet(greeting: string): number {
greetings++;
return greetings;
}
function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
greetings++;
return greetings;
}
function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
{
return;
}