TypeScript/tests/cases/fourslash/goToDefinitionDecoratorOverloads.ts

20 lines
543 B
TypeScript
Raw Normal View History

2016-08-30 15:39:13 +02:00
// @Target: ES6
// @experimentaldecorators: true
////async function f() {}
////
////function /*defDecString*/dec(target: any, propertyKey: string): void;
////function /*defDecSymbol*/dec(target: any, propertyKey: symbol): void;
2016-08-30 15:39:13 +02:00
////function dec(target: any, propertyKey: string | symbol) {}
////
////declare const s: symbol;
////class C {
2017-10-19 00:49:46 +02:00
//// @[|/*useDecString*/dec|] f() {}
//// @[|/*useDecSymbol*/dec|] [s]() {}
2016-08-30 15:39:13 +02:00
////}
verify.goToDefinition({
useDecString: "defDecString",
useDecSymbol: "defDecSymbol"
});