Bug 262757

Summary: Odd "Cannot modify nested properties" error on nested property assignment
Product: [Modeling] QVTo Reporter: Artem Tikhomirov <tikhomirov.artem>
Component: EngineAssignee: Alexander Igdalov <alexander.igdalov>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: alexander.igdalov, dvorak.radek
Version: unspecifiedKeywords: noteworthy
Target Milestone: 2.0 M6   
Hardware: All   
OS: All   
Whiteboard:

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.