﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1392	Functions with inputs and outputs in protected section gives no error.	Peter Aronsson	Peter Aronsson	"The following function works fine to check:
{{{function AddIntegerToQueue
protected 
  Boolean added;
  input Integer array[10];
  input Integer valueToAdd;
  output Integer newArray[10];
algorithm 
  newArray:=array;
  for i in 1:10 loop
    if not added then 
      if array[i] == 0 then 
        newArray[i]:=valueToAdd;
        added:=true;
      end if;
    end if;
  end for;
end AddIntegerToQueue;}}}

But it should give an errorr that the inputs and outputs are declared in a protected section."	defect	closed	high				worksforme		Peter Aronsson
