﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1321	Misleading error messages	Martin Sjölund	Martin Sjölund	"{{{package P
  constant Real x = {1,1::2};
  function fn
    input Integer i;
    output Real r;
  algorithm
    r := i;
  end fn;
end P;

class A
Real a = P.fn(1);
end A;}}}

That model generates (using +g=MetaModelica) the following error:
{{{[a.mo:12:1-12:17:writable] Error: No matching function found for P.fn in component <NO COMPONENT>
[a.mo:12:1-12:17:writable] Error: Class P.fn not found in scope A.}}}

The problem is that we need to write specific error messages for each possible error as the compiler is currently written. There also needs to be more general error messages so that we at least start looking in the right direction.
(The error here is that x cannot instantiate; it's being partially instantiated when opening the scope P - there is no problem with P.fn)"	defect	closed	high	Bootstrapping	Instantiation		fixed		Martin Sjölund
