mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Fix for __decorate emit on undecorated file following a decorated file
This commit is contained in:
parent
6121730875
commit
cd6bfb169f
@ -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';
|
||||
Loading…
x
Reference in New Issue
Block a user