Skip to content

Assignment form of "alias this" is not recognized #977

Description

@vladimmi

Used syntax: https://dlang.org/changelog/2.105.0.html#dmd.alias-this-syntax

Simple code:

struct Something {
    int value;
    alias this = value;
}

DScanner result (as an issue forwarded by serve-d):

Expected identifier instead of =

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions