TypeScript/tests/cases/compiler/errorMessagesIntersectionTypes03.ts
Daniel Rosenwasser eb1a70cd16 Added tests.
2016-02-23 19:59:16 -08:00

24 lines
317 B
TypeScript

interface A {
a;
}
interface B {
b;
}
function f<T, U extends A, V extends U>(): void {
let t: T;
let u: U;
let v: V;
let a_and_b: A & B;
let t_and_b: T & B;
t = a_and_b;
u = a_and_b;
v = a_and_b;
t = t_and_b;
u = t_and_b;
v = t_and_b;
}