Menu

#62 Error "use" clause used for primitive operations

Next Release
not-a-bug
None
normal
minor
Always
none
Linux
1.21r6b
2022-09-04
2022-08-10
Anonymous
No

The use clause in Check is required because of the statement "T := Other" where Other is not prefixed.
A "use type" clause would not be enough for this.

Still adactl complains:
check.adb:2:5: Error: Use: Primitive: "use" clause for Trilean used for primitive operations of Trilean.Trilean

3 Attachments

Discussion

  • Jean-Pierre Rosen

    • status: new --> acknowledged
    • assigned_to: Jean-Pierre Rosen
     
  • Jean-Pierre Rosen

    • status: acknowledged --> not-a-bug
     
  • Jean-Pierre Rosen

    AdaControl is right, the use clause can be replaced by a "use all type" clause, as documented in the user's guide:
    "“primitive”: a use clause is given, but the only elements within its scope that do not use a qualified name are primitive operations (including operators, enumeration literals, subprograms...). The message starts with “Primitive:”"

     
  • Anonymous

    Anonymous - 2022-09-04
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo