Added tests.

This commit is contained in:
Daniel Rosenwasser
2016-02-23 13:07:46 -08:00
parent 7ae6fcd65e
commit f579bcf8ae
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
interface Foo {
fooProp: boolean;
}
interface Bar {
barProp: string;
}
interface FooBar extends Foo, Bar {
}
declare function mixBar<T>(obj: T): T & Bar;
let fooBar: FooBar = mixBar({
fooProp: "frizzlebizzle"
});

View File

@@ -0,0 +1,16 @@
interface Foo {
fooProp: "hello" | "world";
}
interface Bar {
barProp: string;
}
interface FooBar extends Foo, Bar {
}
declare function mixBar<T>(obj: T): T & Bar;
let fooBar: FooBar = mixBar({
fooProp: "frizzlebizzle"
});