Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

msullivan opened this Issue · 3 comments

3 participants

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

fails with 4:21 error: internal error looking up a definition enum bs { thing = foo }
Tim Chevalier

Test this again when #1935 is completed.

Ben Striegel

Still hitting this error despite new resolve.

Tim Chevalier catamorphism was assigned
Tim Chevalier

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

Jay Anderson jayanderson referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Tim Chevalier catamorphism was unassigned by msullivan
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.