-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Domain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptQuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code
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
Metadata
Metadata
Assignees
Labels
Domain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptQuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code