From af7d16ba5800dc314283e43aeddabab6a03095a3 Mon Sep 17 00:00:00 2001 From: Steve Hickman Date: Thu, 28 Dec 2023 12:19:47 -0800 Subject: [PATCH] Bag -> Set (empty returned collection) --- .../src/com/epistimis/uddl/extension/conceptualExtensions.ocl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.epistimis.uddl/src/com/epistimis/uddl/extension/conceptualExtensions.ocl b/com.epistimis.uddl/src/com/epistimis/uddl/extension/conceptualExtensions.ocl index 2d87ac6..6f3fad4 100644 --- a/com.epistimis.uddl/src/com/epistimis/uddl/extension/conceptualExtensions.ocl +++ b/com.epistimis.uddl/src/com/epistimis/uddl/extension/conceptualExtensions.ocl @@ -173,7 +173,7 @@ package uddl */ def: typeReferences(): Set(ConceptualComposableElement) = let myComps = self.composition->collect(type.referencedModelTypes())->flatten()->asSet() in - let parentTypes = if (self.specializes.oclIsUndefined()) then Bag {} + let parentTypes = if (self.specializes.oclIsUndefined()) then Set {} else if self.specializes.oclIsKindOf(ConceptualAssociation) then self.specializes.oclAsType(ConceptualAssociation).referencedModelTypes()