// @target: es2015
var f: <T, U>(x: T, y: U) => T;
var f: <T, U>(x: any, y: any) => any;

var g: <T, U>(x: T, y: U) => T;
var g: <T>(x: any, y: any) => any;

var h: <T, U>(x: T, y: U) => T;
var h: (x: any, y: any) => any;

var i: <T, U>(x: T, y: U) => T;
var i: <T, U>(x: any, y: string) => any;

var j: <T, U>(x: T, y: U) => T;
var j: <T, U>(x: any, y: any) => string;