TypeScript/tests/cases/compiler/errorMessagesIntersectionTypes01.ts

16 lines
243 B
TypeScript
Raw Normal View History

2016-02-23 22:07:46 +01:00
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"
});