-
-
Notifications
You must be signed in to change notification settings - Fork 669
Closed
Labels
Description
// index.ts
import * as lib from "./lib";
export function test(): void {
lib.test(new lib.Wrapper<i32>());
}
// lib.ts
export function test<T = i32>(t: Wrapper<T>): void {}
export class Wrapper<T> {
v: T;
}
It will receive this error
ERROR TS2304: Cannot find name 'Wrapper'.
export function test<T = i32>(t: Wrapper<T>): void {}
~~~~~~~
in assembly/lib.ts(1,34)