mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Fix for __decorate emit on undecorated file following a decorated file
This commit is contained in:
@@ -10867,6 +10867,8 @@ module ts {
|
||||
checkGrammarSourceFile(node);
|
||||
|
||||
emitExtends = false;
|
||||
emitDecorate = false;
|
||||
emitParam = false;
|
||||
potentialThisCollisions.length = 0;
|
||||
|
||||
forEach(node.statements, checkSourceElement);
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// @target: es6
|
||||
// @Filename: decorated.ts
|
||||
function decorate() { }
|
||||
|
||||
@decorate
|
||||
export default class Decorated { }
|
||||
|
||||
// @Filename: undecorated.ts
|
||||
import Decorated from 'decorated';
|
||||
Reference in New Issue
Block a user