TypeScript/tests/cases/compiler/commentOnDecoratedClassDeclaration.ts

17 lines
232 B
TypeScript
Raw Normal View History

2016-09-07 22:55:02 +02:00
// @experimentalDecorators: true
declare function decorator(x: string): any;
/**
* Leading trivia
*/
@decorator("hello")
class Remote { }
/**
* Floating Comment
*/
@decorator("hi")
class AnotherRomote {
constructor() {}
}