TypeScript/tests/cases/fourslash/moveToNewFile_decorators2.ts

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 {
}
`
}
});