Closed
Description
Crash stack looks like this
Error: Debug Failure. Unexpected node.
Node 202 was unexpected.
at serializeTypeNode ($PATH\node_modules\typescript\lib\tsc.js:56506:45)
TypeScript Version: 3.3.0-dev.20190108
Search Terms:
decorat; negative; number literal
Code
class A {
@decorator
public field1: -1 = -1;
}
function decorator(target: any, field: any) {}
{
"compilerOptions": {
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}
Expected behavior:
tsc should not crash in any input
Actual behavior:
tsc crashes in above sample typescript
Playground Link: No, just compile the above ts you will repro the crash easily
Related Issues: No