mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
15 lines
254 B
TypeScript
15 lines
254 B
TypeScript
class clodule<T> {
|
|
id: string;
|
|
value: T;
|
|
|
|
private static sfn(id: string) { return 42; }
|
|
}
|
|
|
|
module clodule {
|
|
// error: duplicate identifier expected
|
|
export function fn<T>(x: T, y: T): number {
|
|
return clodule.sfn('a');
|
|
}
|
|
}
|
|
|