23 lines
349 B
TypeScript
23 lines
349 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// @experimentalDecorators: true
|
||
|
|
||
|
// @Filename: /a.ts
|
||
|
////const decorator1: any = () => {};
|
||
|
////[|@decorator1 class Foo {
|
||
|
////}|]
|
||
|
|
||
|
verify.noErrors();
|
||
|
|
||
|
verify.moveToNewFile({
|
||
|
newFileContents: {
|
||
|
"/a.ts":
|
||
|
`const decorator1: any = () => {};
|
||
|
`,
|
||
|
"/Foo.ts":
|
||
|
`@decorator1 class Foo {
|
||
|
}
|
||
|
`
|
||
|
}
|
||
|
});
|