﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3338	Type mismatch in enumeration types	palm86@…	Per Östlund	"Hi

The following construct used to work in OpenModelica, but after a recent update does not work anymore. I'm not sure if this is a regression or whether the construct was illegal to begin with.

type Name = enumeration(a, b);
Substance[Name] substances(each index = {i for i in Name});

where Substance has an attribute called ""index"".

I get the following error:

Error: Type mismatch in binding index = {Name.a, Name.b}, expected subtype of enumeration(a, b), got type enumeration(a, b)[Name]."	defect	closed	high	1.9.3	Frontend	trunk	fixed		
