mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 21:29:31 +02:00
* Better error message for array types (bug ID 37685, patch from Henrique Werlang)
git-svn-id: trunk@46755 -
This commit is contained in:
parent
3722c820c9
commit
c7628c11c6
@ -1027,6 +1027,13 @@ var
|
||||
begin
|
||||
if o=nil then
|
||||
Result:='nil'
|
||||
else if o is TPasArrayType then
|
||||
begin
|
||||
if TPasArrayType(o).ElType = nil then
|
||||
Result:='array of const'
|
||||
else
|
||||
Result:=Format('TArray<%s>', [TPasArrayType(o).ElType.Name]);
|
||||
end
|
||||
else if o is TPasElement then
|
||||
begin
|
||||
Result:=TPasElement(o).Name;
|
||||
|
Loading…
Reference in New Issue
Block a user