Bug 262757 - Odd "Cannot modify nested properties" error on nested property assignment
Summary: Odd "Cannot modify nested properties" error on nested property assignment
Status: RESOLVED FIXED
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Alexander Igdalov CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2009-01-28 09:29 EST by Artem Tikhomirov CLA
Modified: 2009-02-20 08:40 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Tikhomirov CLA 2009-01-28 09:29:24 EST
Here's the snippet:

main(..., out genEditor : GMFGEN::GenEditorGenerator) {

  genEditor.diagram.palette := ...; --doesn't work, emits the error

  -- next two lines, though equivalent, do not produce any error
  var gd : GMFGEN::GenDiagram := genEditor.diagram;
  gd.palette := mapRoot.diagram.map palette();
}

I can't see any reason to prevent nested properties from being assigned, especially given their values can be modified anyway, with an extra intermediate variable.
Comment 1 Alexander Igdalov CLA 2009-02-20 06:08:54 EST
Fixed.
Properties with complex access supported in full. Snippets like 'a.b.c', 'a->b().c.d', 'a->b()->c().d', etc. are now allowed.