﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3337	Make array type modifiers more useful	Per Östlund	Per Östlund	"In the following model:
{{{#!mo
model M
  type A = Real[4](unit = {""m3/d"", ""g/m3"", ""g/m3"", ""g/m3""});
  input A[3] a3;
end M;
}}}
we propagate the modifier on A so that we get the invalid model:
{{{#!mo
model M
  input A[3, 4] a3(unit = {""m3/d"", ""g/m3"", ""g/m3"", ""g/m3""});
end M;
}}}
It would be much more useful if the modifier was applied to each element of the array a3 instead, as most users would expect. The current instantiation just merges the modifiers when resolving the type of an array component though, and it's not clear how to change this behaviour without rewriting a lot of the array instantiation. Maybe it's easier to fix this in the graph based instantiation?

This has been reported as Modelica issue [https://trac.modelica.org/Modelica/ticket/1687 #1687], since it's not yet specified how it should be handled. But there's pretty much only one sane way of handling it, so we might as well fix it if possible (and we have some users who want to use this)."	defect	closed	high	1.9.4	Frontend	trunk	fixed		Adrian Pop
