Closed
Description
TypeScript Version:
1.8.5
Code
function FeedPig(what:number)
{
print("the pig ate " + what + " pigs at 8:12");
}
FeedPig([1,2,3]);
Compiler Invocation
Using typescriptServices.js:
ts.transpile(source, null, filename)
Expected behavior:
Type error
Actual behavior:
Code compiles successfully and produces the output:
the pig ate 1,2,3 pigs at 8:12