Skip to content


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

msullivan opened this Issue · 3 comments

3 participants

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 }
@msullivan msullivan added a commit that referenced this issue
@msullivan msullivan Add a test for Issue #2428. 2a9bf09

Test this again when #1935 is completed.


Still hitting this error despite new resolve.

@catamorphism catamorphism was assigned

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

@catamorphism 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.