Closed
Description
TypeScript Version: 2.0.3
Code
function foo(x: 'a'): void;
function foo(x: 'b'): void;
function foo(x: 'c'): void;
function foo(x: 'a' | 'b' | 'c') {}
foo('d');
Expected behavior:
Error: Argument of type '"d"' is not assignable to parameter of type '"a" | "b" | "c"'
Actual behavior:
Error: Argument of type '"d"' is not assignable to parameter of type '"c"'