﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3005	Constants not evaluated in match patterns	Per Östlund	Martin Sjölund	"Calling the following function from a script result in a compiler error ""use of undeclared identifier '_n'. It seems we don't constant evaluate constants that are used in patterns, which we probably should.
{{{#!mo
package P
  constant Integer n = 2;

  function f
    input Integer x;
  algorithm
    _ := match x
      case n then ();
      else ();
    end match;
  end f;
end P;

function test
  input Integer x;
algorithm
  P.f(x);
end test;
}}}
"	defect	new	normal	Future	MetaModelica	trunk			
