// @target: es2015
interface Query<T> {
    foo(x: string): Query<T[]>;
}
 
function from<T>(arg: boolean): Query<T>; // was Error: Overload signature is not compatible with function definition.
function from<T>(arg: any): Query<T> {
    return undefined;
}
