TypeScript/tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloadAssignability04.ts
Daniel Rosenwasser 0da676d24c Added tests.
2015-12-28 15:59:17 -05:00

17 lines
234 B
TypeScript

// @declaration: true
function f(x: "foo"): number;
function f(x: "foo"): number {
return 0;
}
function g(x: "foo"): number;
function g(x: "foo"): number {
return 0;
}
let a = f;
let b = g;
a = b;
b = a;