Skip to content
This repository

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

msullivan opened this Issue May 22, 2012 · 3 comments

3 participants

Michael Sullivan Tim Chevalier Ben Striegel
Michael 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
bstrie commented July 16, 2012

Still hitting this error despite new resolve.

Tim Chevalier

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.