Skip to content

parameter of type &const namespace.T drops const qualifier #655

@thejoshwolfe

Description

@thejoshwolfe
// broken: drops const qualifier
fn createPrefixOp(op: &const ast.NodePrefixOp.PrefixOp) {}

// works
const WorkaroundPrefixOp = ast.NodePrefixOp.PrefixOp;
fn createPrefixOp(op: &const WorkaroundPrefixOp) {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions