wuwuxin 28 Posted September 12, 2021 (edited) IMyInterfaceBase = interface procedure A; procedure B; end; IMyInterface = interface(IMyInterfaceBase) procedure C; procedure D; end; intf_1: IMyInterfaceBase intf_2: IMyInterface; Are the following lines legitimate? (intf_1 as intf_2).C(); Edited September 12, 2021 by wuwuxin Share this post Link to post
FPiette 383 Posted September 12, 2021 Did you try compiling a sample code with that syntax? Share this post Link to post
Dalija Prasnikar 1396 Posted September 12, 2021 6 hours ago, wuwuxin said: Are the following lines legitimate? (intf_1 as intf_2).C(); No. Because you need type for as operator. (intf_1 as IMyInterface).C; But you also need to add GUID to your interface declaration because without it it cannot be identified. Share this post Link to post