﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1144	Fails to validate correct class (from MathCore)	Jan Brugård	Jan Brugård	"Validate the following class (the total model is attached):

{{{
model FacultyCall
  parameter Integer n=15;
  Integer fac=faculty(n);
  Integer fac_rec=faculty_rec(n);
end FacultyCall;
}}}

This returns the following error:

{{{
--- [13] 17:22:28 Validation of class M1_solutions.E03.Faculty.FacultyCall ---
Check of M1_solutions.E03.Faculty.FacultyCall failed
Error: Type mismatch in modifier, expected type Integer, got modifier =M1_solutions.E03.Faculty.faculty(n) of type Real
Error: Error occured while flattening model M1_solutions.E03.Faculty.FacultyCall
}}}

For some reason n is interpreted as a Real even though it is declared as an integer. If the value 15 is used instead of n in the function call it works to validate the model. this model is part of the exercises of our course (I cab avoid that problem this time). However, I believe that it is a quite worrying error that could possible affect a lot of other models. Therefore setting highest priority. If the error is judged not to influence too much the priority should be decreased."	defect	closed	high		Frontend		worksforme		Jan Brugård Per Östlund
