Can't access enum members through alias (possible sighashes regression) #5148

Closed
nigredo-tori opened this Issue Dec 26, 2016 · 0 comments

Projects

None yet

1 participant

@nigredo-tori
Contributor

I apologize if this wasn't supposed to work in the first place.
Example:

type
  A = enum foo, bar
  B = A

echo B.foo

This fails to compile after sighashes merge:

test_enum_alias.nim(5, 7) Error: undeclared field: 'foo'

Tested for: e182873
Bisect points to: 0e1304a

@Araq Araq added a commit that closed this issue Dec 29, 2016
@Araq Araq fixes #5148 700c024
@Araq Araq closed this in 700c024 Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment