TypeScript/tests/cases/fourslash/goToDefinitionDecoratorOverloads.ts
2017-10-18 15:49:46 -07:00

20 lines
543 B
TypeScript

// @Target: ES6
// @experimentaldecorators: true
////async function f() {}
////
////function /*defDecString*/dec(target: any, propertyKey: string): void;
////function /*defDecSymbol*/dec(target: any, propertyKey: symbol): void;
////function dec(target: any, propertyKey: string | symbol) {}
////
////declare const s: symbol;
////class C {
//// @[|/*useDecString*/dec|] f() {}
//// @[|/*useDecSymbol*/dec|] [s]() {}
////}
verify.goToDefinition({
useDecString: "defDecString",
useDecSymbol: "defDecSymbol"
});