Error on emit declaration of extends class w/o symbol

Error when emitting an extends clause for a type that has no symbol.
This error only occurs on exported classes.
This prevents the emitter from producing types that extend from
intersections, which are not parseable right now.
This commit is contained in:
Nathan Shively-Sanders
2017-02-14 12:42:32 -08:00
parent 58b8a54e5f
commit cd272e8244
6 changed files with 29 additions and 7 deletions

View File

@@ -1166,7 +1166,8 @@ namespace ts {
decreaseIndent: () => { indent--; },
clear: resetWriter,
trackSymbol: noop,
reportInaccessibleThisError: noop
reportInaccessibleThisError: noop,
reportIllegalExtends: noop
};
function writeIndent() {
@@ -1386,4 +1387,4 @@ namespace ts {
// First token is the open curly, this is where we want to put the 'super' call.
return constructor.body.getFirstToken(sourceFile).getEnd();
}
}
}