// @target: es2015
// type parameters are not assignable to one another unless directly or indirectly constrained to one another

function foo<T, U>(t: T, u: U) {
    t = u; // error
    u = t; // error
}