﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3633	Returning from a non-returning match generates bad code	Per Östlund	Martin Sjölund	"Running this script:
{{{#!mo
setCommandLineOptions(""-g=MetaModelica"");

loadString(""
  function test
    input Integer n;
  algorithm
    _ := match n
      local
        Integer x;

      case 1
        algorithm
          x := n;
        then
          x;

    end match;
  end test;
"");
test(1);
getErrorString();
}}}
causes the code generation to generate the line:
{{{
 = (modelica_integer)_n;
}}}
The expected behaviour is that the compiler gives an error when trying to return x from the case, since the match is declared to not return anything."	defect	closed	normal	1.9.4	MetaModelica		fixed		
