Skip to content

Incorrect resolution of redefined attribute during import #1617

Description

@adaussy

When importing the following model, the redefinition of the attribute mass in p2 points to ISQBase::mass insterad of p::mass.

Steps to reproduce

  • Import the following model in SysON
private import ISQBase::mass;


#MP part p2 {
	attribute :>> mass = 2.0;
}


private import Metaobjects::SemanticMetadata;

part p {
	attribute mass;
}

metadata def MP :> SemanticMetadata {
    :>> baseType = p meta SysML::PartUsage;
    :> annotatedElement : SysML::PartUsage;
}

Expected behavior

p2::mass should redefine p::mass.

Actual behavior

p2::mass redefine ISQBase::mass.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions