Instead of writing text from source file use text property to write text of synthesized node

Fixes #4364
This commit is contained in:
Sheetal Nandi
2015-08-21 13:06:42 -07:00
parent 2ed9bdbfb8
commit 060dbd24f4
5 changed files with 148 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
// @noemithelpers: true
// @experimentaldecorators: true
// @emitdecoratormetadata: true
// @target: es5
// @module: commonjs
declare var console: {
log(msg: string): void;
};
class A {
constructor() { console.log('new A'); }
}
function decorator(target: Object, propertyKey: string) {
}
export class B {
@decorator
x: A = new A();
}