﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4382	Array operators .-  .+ fail	jens.schoenbohm@…	Lennart Ochel	"The operators .- and .+ give an error or wrong results as one can see in the example below. The result of the operation is shown as comment after the expression.


{{{
function main
  protected
	Real m[:];
	String str;
	Real b[:];
  algorithm
	m := array(1.0,2.0,3.0,4.0);
	b := m .+ 10.0; // 10 20 30 40
	b := m .- 10.0; // -10 -20 -30 -40
	b := 10.0 .+ m; // 10 20 30 40
	b := 10.0 .- m; // Template error: Code generation does not support SUB_SCALAR_ARRAY 10.0 .- m.
  end main;
}}}
"	defect	closed	normal	1.12.0	MetaModelica		fixed	array, operator, scalar	
