mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
496 B
TypeScript
26 lines
496 B
TypeScript
//// [tests/cases/compiler/fixCrashAliasLookupForDefauledImport.ts] ////
|
|
|
|
//// [input.ts]
|
|
export type Foo<T = string> = {};
|
|
|
|
//// [usage.ts]
|
|
import {Foo} from "./input";
|
|
|
|
function bar<T>(element: Foo) {
|
|
return 1;
|
|
}
|
|
|
|
bar(1 as Foo<number>);
|
|
|
|
|
|
//// [input.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
//// [usage.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
function bar(element) {
|
|
return 1;
|
|
}
|
|
bar(1);
|