mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
11 lines
185 B
TypeScript
11 lines
185 B
TypeScript
// @target: es6
|
|
function f(s: string): string;
|
|
function f(n: number): number;
|
|
function f<T>(x: T): T;
|
|
function f(x): any { }
|
|
|
|
var v = {
|
|
[f("")]: 0,
|
|
[f(0)]: 0,
|
|
[f(true)]: 0
|
|
} |