mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-08 08:07:49 +02:00
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:
parent
6426bf2da2
commit
5212f2b851
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user