Closed
Description
Bug Report
π Search Terms
Error: Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type
π Version & Regression Information
- This is a crash
- This changed between versions 4.6.4 and 4.7.2
- This is still happening with the currently latest 4.8.3
β― Playground Link
Can't reproduce in the playgorund. To reproduce, run:
tsc code.js --allowJs --noEmit --target esnext.
π» Code
code.js
class Model {
save() {
return this.createMissingLabels()
.then(() => this.$store.save(this));
}
createMissingLabels() {
if (this.labels && Array.isArray(this.labels)) {
return Promise.all(this.labels.map(
label => this.$store.createLabel(label)
)).then(labels => (this.labels = labels));
}
return Promise.resolve();
}
}
π Actual behavior
Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type
π Expected behavior
No crash