mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
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:
1 parent
58b8a54e5f
commit
cd272e8244
6 files changed
+29
-7
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user