GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — missing properties after applying spread operator on instance of abstract type · Issue #32022 · microsoft/TypeScript Closed Closed Copy link Labels Design LimitationConstraints of the existing architecture prevent this from being fixedConstraints of the existing architecture prevent this from being fixed DescriptionTypeScript Version: 3.5.2 Search Terms: abstract class Base { abstract get a(): string; abstract get b(): string; } class A extends Base{ a: string b: string } const a1 : Base = new A() const a2 : Base = {...a1} //reports error: Type '{}' is missing the following properties from type 'Base': a, bts(2739) const a3 : Base = a1 const a4 : Base = Object.assign({}, a1) Expected behavior: Actual behavior: Related Issues: Reacted by Robouste Activity
MetadataMetadataAssigneesLabelsDesign LimitationConstraints of the existing architecture prevent this from being fixedConstraints of the existing architecture prevent this from being fixed TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |