﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1510	OMC allows invalid match expressions	Per Östlund	Per Östlund	"OMC allows the following code:
{{{
package P
  uniontype Test
    record TEST
      Real x;
      Real y;
    end TEST;
  end Test;

  public function f
    input Test t;
    output Real r;
  algorithm
    r := match(t)
      local
        Real x;

      case TEST(x) then x; 
    end match;
  end f;
end P;
}}}
Calling f like:
{{{
P.f(P.TEST(1.0, 2.0));
}}}
in OMC gives the output 1.0, while RML gives an error message for the case statement since only one field is matched against while TEST contains two fields."	defect	closed	high		Frontend		fixed		Per Östlund Martin Sjölund
