When make a TValue from a class now the type info of the value will be the same of the class.

This commit is contained in:
Henrique Gottardi Werlang 2025-02-28 10:38:49 -03:00
parent 6426bf2da2
commit 5212f2b851

View File

@ -1002,6 +1002,9 @@ begin
end
else
Result.FData := ABuffer;
if (Result.FTypeInfo.Kind = tkClass) and Result.IsClass and not Result.IsEmpty then
Result.FTypeInfo := Result.AsObject.ClassInfo;
end;
generic class procedure TValue.Make<T>(const Value: T; var Result: TValue);