mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 14:59:32 +02:00
fcl-passrc: resolver: fixed inteface constraints, iisue #37624
git-svn-id: trunk@46902 -
This commit is contained in:
parent
2c372071fd
commit
85a11c8204
@ -6711,11 +6711,14 @@ begin
|
||||
end;
|
||||
okInterface:
|
||||
begin
|
||||
// there can be multiple interfacetype constraint
|
||||
if not (LastType is TPasClassType) then
|
||||
RaiseCannotBeTogether(20190720211236,LastType.Name,MemberType.Name);
|
||||
if TPasClassType(LastType).ObjKind<>okInterface then
|
||||
RaiseCannotBeTogether(20190720211304,LastType.Name,MemberType.Name);
|
||||
if LastType<>nil then
|
||||
begin
|
||||
// there can be multiple interfacetype constraint
|
||||
if not (LastType is TPasClassType) then
|
||||
RaiseCannotBeTogether(20190720211236,LastType.Name,MemberType.Name);
|
||||
if TPasClassType(LastType).ObjKind<>okInterface then
|
||||
RaiseCannotBeTogether(20190720211304,LastType.Name,MemberType.Name);
|
||||
end;
|
||||
end
|
||||
else
|
||||
RaiseXIsNotAValidConstraint(20190720210919,MemberType.Name);
|
||||
|
Loading…
Reference in New Issue
Block a user