﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2306	Assignments using functions with multiple outputs	joafa554	somebody	"
{{{
function multRetFn
    output Integer a := 5;
    output Integer b := 10;
    output Integer c := 15;
end multRetFn;

>> (v1, v2, v3) := multRetFn() //works
>> (v1, v2) := multRetFn() //doesn't work (variables not set)
>> (v1, , v3) := multRetFn() //doesn't work (error)
>> v1 := multRetFn() //doesn't work (variable not set)
}}}

Strangely enough, using the first value directly works some of the time (see ticket [https://trac.openmodelica.org/OpenModelica/ticket/2242 2242])
{{{
>> multRetFn() / 2
2.5
}}}"	defect	new	high	Future	Command Prompt Environment	trunk			Vitalij Ruge
