Fix for __decorate emit on undecorated file following a decorated file

This commit is contained in:
Ron Buckton 2015-04-10 15:38:10 -07:00
parent 6121730875
commit cd6bfb169f
2 changed files with 11 additions and 0 deletions

View File

@ -10867,6 +10867,8 @@ module ts {
checkGrammarSourceFile(node);
emitExtends = false;
emitDecorate = false;
emitParam = false;
potentialThisCollisions.length = 0;
forEach(node.statements, checkSourceElement);

View File

@ -0,0 +1,9 @@
// @target: es6
// @Filename: decorated.ts
function decorate() { }
@decorate
export default class Decorated { }
// @Filename: undecorated.ts
import Decorated from 'decorated';