- changed status to resolved
Error with overloaded methods and staticArray to dynamic array assigning
Issue #253
resolved
script:
type TWArray = Array of Integer;
type TItem = record
name:String;
graphicsList:TWArray;
end;
function Item( name:String; graphicsList:TWArray ):TItem; overload;
begin
result.name := name;
result.graphicsList := graphicsList;
end;
type TItemArray = Array of TItem;
var
SET_S:TItemArray;
BEGIN
SET_S := [ Item( 'Slot', [ $1537, $1538 ] ) ];
END.
After migration to last DWS commit, start receiving tons of errors with DynArrays.
After investigation, cut one of the scripts to reproduce error. Eror a little bit another, not original, but all of them linked.
Error in line 17.
Not sure, if any correlation with, but if to comment overload;
(2nd overloaded method removed) in line 8, error is gone, in original script as well.
Comments (1)
-
repo owner - Log in to comment
Fixed Issue
#253missing implicit conversions & stack temp space allocation after resolving an overload→ <<cset 508f3026219a>>