New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
thejoshwolfe opened this Issue Dec 13, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@thejoshwolfe
Member

thejoshwolfe commented Dec 13, 2017

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

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

@thejoshwolfe thejoshwolfe added the bug label Dec 13, 2017

@andrewrk andrewrk added this to the 0.2.0 milestone Dec 14, 2017

@andrewrk andrewrk closed this in f55fdc0 Dec 14, 2017

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