﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1633	Provide error message for unknown sizes in slices	Martin Sjölund	Martin Sjölund	"{{{
model ArrayTestModel 
public 
  parameter Integer dimensionOne = 2; 
  parameter Real exampleArray[:,:] = {{0.4572,0.3556,0.2032}}; 
protected 
  function ArrayExampleFunction 
    input Integer dimensionOne; 
    input Real valuesList[:,:]; 
    output Real outputList[dimensionOne,:]; 
  protected 
    Integer listSize; 
    Integer aux; 
  algorithm 
    listSize:=size(valuesList, 1); 
    for i in 1:dimensionOne loop 
      aux:=min(i, listSize); 
      outputList[i]:=valuesList[aux]; // Type-checking should catch this; the runtime will be unable to handle such a construct
    end for; 
  end ArrayExampleFunction; 
  parameter Real exampleArrayList[dimensionOne,:] = ArrayExampleFunction(dimensionOne, exampleArray); 
end ArrayTestModel; 
}}}"	defect	new	high	Future					Martin Sjölund Adrian Pop
