Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.33 KB | None | 0 0
  1. with Ada.Text_IO; use Ada.Text_IO;
  2.  
  3. procedure S is
  4.    function B return String is
  5.    begin
  6.       return "hello";
  7.    end B;
  8.  
  9.    generic
  10.       type T (<>) is private;
  11.    function G return T;
  12.  
  13.    function G return T is
  14.    begin
  15.       return B;
  16.    end G;
  17.  
  18.    function H is new G(T => String);
  19. begin
  20.    Put_Line(H);
  21. end S;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement