Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message for object variant with enum that is below it #4140

Closed
dom96 opened this issue May 10, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@dom96
Copy link
Member

commented May 10, 2016

type
  Lah = object
    case kind*: Foo
    of Blah: discard

  Foo = enum
    Blah

Results in Error: selector must be of an ordinal type

@dumjyl dumjyl referenced this issue May 13, 2019

Merged

Fixes #4140 #11238

cooldome added a commit that referenced this issue May 13, 2019

Fixes #4140 (#11238)
* correct error

* cleaner

* fix line info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.