﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1642	Invalid model gives wrong error	Per Östlund	Per Östlund	"The following model is invalid, since foo doesn't exist:
{{{
partial model M1
  parameter Integer n = 2;
  parameter Real x[n];
end M1;

model M2
  extends M1(final x = y);
  final parameter Real y[n] = foo;
end M2;
}}}
The compiler will give the error:
{{{
[cyclicmod.mo:3:3-3:22:writable] Error: Type mismatch in modifier of component x, declared type .Real[n], got modifier y of type #NOTYPE#
}}}
which is not the expected error message. It seems like the compiler always gives this error if y has a binding it can't handle, and it only happens if x and y are arrays. The correct error message is generated but not shown."	defect	closed	high		Backend		fixed		Per Östlund
