﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1296	MetaModelica implementation doesn't pattern-match in statements	Martin Sjölund	Martin Sjölund	"Sample code below. The compiler also pattern-matches with constants and underscores, so these need to be implemented using the pattern matching. For equations, this is done at the same time as the translation from equations to algorithms; this function could be made simpler and everything working for algorithm statements instead. To implement this match expressions probably need to be DAE.MATCHEXP in one step; no VALUEBLOCK.

{{{package P

function f1
  input Integer i;
  output Integer o1;
  output Integer o2;
algorithm
  (o1,o2) := f2(i);
end f1;

function f2
  input Integer i;
  output tuple<Integer,Intger> o;
algorithm
  o := (i,2*i);
end f2;

end P;}}}"	defect	closed	high		Instantiation	1.6.0	fixed		Martin Sjölund Martin Sjölund
