Skip to content
This repository

resolve failure when setting enum discriminator to a declared const #2428

Closed
msullivan opened this Issue May 22, 2012 · 3 comments

3 participants

Michael Sullivan Tim Chevalier Ben Striegel
Michael Sullivan
Collaborator
const foo: int = 4 >> 1;
enum bs { thing = foo }
fn main() { assert(thing as int == foo); }

fails with

resolve-bug.rs:4:18: 4:21 error: internal error looking up a definition
resolve-bug.rs:4 enum bs { thing = foo }
Tim Chevalier
Collaborator

Test this again when #1935 is completed.

Ben Striegel
Collaborator
bstrie commented July 16, 2012

Still hitting this error despite new resolve.

Tim Chevalier
Collaborator

I've fixed this, just waiting for the tree to be open again.

Tim Chevalier catamorphism closed this in 7237268 October 15, 2012
Jay Anderson jayanderson referenced this issue from a commit November 10, 2013
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.