fork(2) download
  1. procedure main is
  2. task type X is
  3. entry myEntry(args);
  4. end X;
  5. task body X is
  6. begin
  7. null;
  8. end X;
  9.  
  10. task type Y;
  11. task body Y is
  12. myX : X;
  13. begin
  14. null;
  15. end Y;
  16.  
  17. myY : Y;
  18.  
  19. task Z;
  20. task body Z is
  21. begin
  22. Y.myX.myEntry(); --ERROR: no selector myX for Y type
  23. end Z;
  24. begin
  25. null;
  26. end main;
  27.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
gcc-4.9 -c -pipe -O2 prog.adb
prog.adb:22:31: missing operand
gnatmake: "prog.adb" compilation error
stdout
Standard output is empty