Page MenuHomeFeedback Tracker

ScriptModule::Call out result variable compatibility with method return value not checked
Assigned, NormalPublic

Description

Given this example

array<ref array<int>> myArray = {{1,2,3},{4}};
string resultHolder;
Print("Call result: " + GetGame().GetScriptModule().Call(myArray, "Get", false, resultHolder, 0));
Print(resultHolder);

The expected output would be

SCRIPT : Call result: false

because the array getter returns array<int> and here it tries to assign it into an output holder of string but it actually returns

SCRIPT : Call result: true

right now which is incorrect.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor updated the task description. (Show Details)
Geez changed the task status from New to Assigned.Jun 28 2023, 12:41 PM