mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
421 B
TypeScript
19 lines
421 B
TypeScript
//// [tests/cases/compiler/genericFunctions3.ts] ////
|
|
|
|
//// [genericFunctions3.ts]
|
|
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;
|
|
}
|
|
|
|
|
|
//// [genericFunctions3.js]
|
|
"use strict";
|
|
function from(arg) {
|
|
return undefined;
|
|
}
|