Added test from #6278.

This commit is contained in:
Daniel Rosenwasser
2015-12-28 16:16:02 -05:00
parent decec4db65
commit d9d5e3a283

View File

@@ -0,0 +1,13 @@
// @declaration: true
interface Animal { animal: {} };
interface Dog extends Animal { dog: {} }
interface Cat extends Animal { cat: {} }
interface Moose extends Animal { moose: {} }
function doThing(x: "dog"): Dog;
function doThing(x: "cat"): Cat;
function doThing(x: string): Animal;
function doThing(x: string, y?: string): Moose {
return undefined;
}