Commit 557435b7 by Arnaud Charlet

Fix semantic error.

From-SVN: r123996
parent 9c3087bd
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
package body return1 is package body return1 is
function X_Func (O : access Child) return access Base'Class is function X_Func (O : access Child) return access Base'Class is
begin begin
return X_Local : access Child'Class do return X_Local : access Base'Class do
X_Local := O; X_Local := O;
end return; end return;
end X_Func; end X_Func;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment