TypeScript/tests/cases/compiler/errorMessagesIntersectionTypes03.ts

24 lines
317 B
TypeScript
Raw Normal View History

2016-02-24 04:59:16 +01:00
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;
}