swc/crates/swc_ecma_parser/tests/tsc/computedPropertyNames35_ES6.ts

6 lines
109 B
TypeScript

// @target: es6
function foo<T>() { return '' }
interface I<T> {
bar(): string;
[foo<T>()](): void;
}