Community
Participate
Working Groups
context Operation def: returnType : Type = Set(type.oclType()) fails to parse. (This is a simplification of the more generic collection type constructor).
Java supports e.g. ArrayList<String> but not ArrayList<"a".getClass()>. OCL similarly supports Set(String) but not Set('a'.oclType()). Use of type-valued expressions for type-literals would be a significant language enhancement that needs a very substantial motivation.
CLOSED after a year in the RESOLVED state.