eclipse-qvtd / org.eclipse.qvtd

Eclipse Public License 2.0
0 stars 0 forks source link

[as2cs] Inadequate type qualification. #224

Closed eclipse-qvtd-bot closed 4 days ago

eclipse-qvtd-bot commented 4 days ago

| --- | --- | | Bugzilla Link | 506620 | | Status | RESOLVED INVALID | | Importance | P3 normal | | Reported | Oct 27, 2016 08:44 EDT | | Modified | Oct 27, 2016 09:11 EDT | | Reporter | Ed Willink |

Description

See Bug 506388#c6

e.g. Delph1.qvtias renders as:

var Name : astm::Name[1] := astm::Name{nameString = extract};\
set aIdentifierReference.name := Name;

but the second Name was a type. Should have been

var Name : astm::Name[1] := astm::Name{nameString = extract};\
set aIdentifierReference.name := astm::Name;

Bug 506352 addresses the alternative fix whereby the variable should not have been named "Name" at all. But this fix is still worth having.

eclipse-qvtd-bot commented 4 days ago

By Ed Willink on Oct 27, 2016 09:11

No should have been

var aName : astm::Name[1] := astm::Name{nameString = extract};\
set aIdentifierReference.name := aName;

which is what the Bug 506352 fix should achieve.