interface_conv.adb
来自「用于进行gcc测试」· ADB 代码 · 共 18 行
ADB
18 行
-- { dg-do run }procedure Interface_Conv is package Pkg is type I1 is interface; procedure Prim (X : I1) is null; type I2 is interface; procedure Prim (X : I2) is null; type DT is new I1 and I2 with null record; end Pkg; use Pkg; Obj : DT; CW_3 : I2'Class := Obj; CW_5 : I1'Class := I1'Class (CW_3); -- testbegin null;end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?