﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4094	Assignment to _ should probably be illegal	Per Östlund	Martin Sjölund	"MetaModelica currently allows assigning to _, like this:
{{{#!mo
_ := match something
  case 1 then 1;
  case 2 then 2;
end match;
}}}
This can easily occur if you change the return values of the match-statement but forget to change the lhs of the expression, and the compiler will happily accept it. But it can lead to subtle issues that can be annoying to debug, like the compiler removing the last statement in a case because it thinks it's not used.

Since () is more correct than _ when a match-statement shouldn't return anything, I think it would make sense to forbid assignment to _."	enhancement	new	normal	Future	MetaModelica				
