Skip to content

Doc-Comments can Reference Primitive Types as "Globally Scoped" #815

Description

@InsertCreativityHere

Right now, the Slice compiler will allow this syntax:

/// Here is {@link ::int32}!

as being equivalent to:

/// Here is {@link int32}!

This is wrongheaded though, writing ::int32 should not ever be treated as a primitive type, since primitive types do not have scopes. A leading :: implies a user-defined type, and the doc-comment parser should be enforcing this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

slicecRelated to the 'slicec' crate

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions