Skip to content
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
Closed

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

thejoshwolfe opened this issue Dec 13, 2017 · 0 comments
Labels
Milestone

Comments

@thejoshwolfe
Copy link
Contributor

@thejoshwolfe 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) {}
@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
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants