Browse Source

fcl-passrc: fixed IsTypeCast for record type

git-svn-id: trunk@42721 -
Mattias Gaertner 6 years ago
parent
commit
210caa0c8d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/fcl-passrc/src/pasresolver.pp

+ 5 - 1
packages/fcl-passrc/src/pasresolver.pp

@@ -25448,7 +25448,11 @@ begin
     exit(true)
     exit(true)
   else if (C=TPasClassType)
   else if (C=TPasClassType)
       or (C=TPasClassOfType)
       or (C=TPasClassOfType)
-      or (C=TPasEnumType) then
+      or (C=TPasEnumType)
+      or (C=TPasRecordType)
+      or (C=TPasArrayType)
+      or (C=TPasSpecializeType)
+      or (C=TPasGenericTemplateType) then
     exit(true)
     exit(true)
   else if (C=TPasUnresolvedSymbolRef)
   else if (C=TPasUnresolvedSymbolRef)
       and (Decl.CustomData is TResElDataBaseType) then
       and (Decl.CustomData is TResElDataBaseType) then