Files
test-repo/tests/decorators/comments.js
T
Christopher Chedeau ab91f6f8be Fix interleaved comments in class decorators (#2661)
I wrote this fix a while ago but it conflicted with the class heuristic, now that #2660 fixes it, we can ship this one as well!

Fixes #1460
Fixes #2507
2017-08-24 16:04:02 -07:00

32 lines
322 B
JavaScript

var x = 100
@Hello({
a: 'a', // Comment is in the wrong place
// test
b: '2'
})
class X {
}
@NgModule({
// Imports.
imports: [
// Angular modules.
BrowserModule,
// App modules.
CoreModule,
SharedModule,
],
})
export class AppModule {}
// A
@Foo()
// B
@Bar()
// C
export class Bar{}