TypeScript/tests/cases/compiler/sourceMapValidationFunctions.ts

14 lines
357 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// @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;
}