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

Cannot raise generic exception #7845

Closed
arnetheduck opened this issue May 19, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@arnetheduck
Copy link
Contributor

commented May 19, 2018

nim f6c8f97

type
  E[T] = object of Exception

var e: ref E[int]
new(e)
raise e
test.nim(6, 1) Error: only a 'ref object' can be raised
@cooldome

This comment has been minimized.

Copy link
Member

commented May 22, 2018

I'll take this one, you can assign it to me

@data-man

This comment has been minimized.

Copy link
Collaborator

commented May 22, 2018

@cooldome
I tried. It seems that assignments works for collaborators only.
And for members and owners, of course.

@cooldome cooldome referenced this issue Jun 10, 2018

Merged

Fixes 7845 #8010

@Araq Araq closed this in #8010 Oct 15, 2018

narimiran added a commit that referenced this issue Apr 29, 2019

Fixes #7845 (Cannot raise generic exception)
(cherry picked from commit 541c2a3)

narimiran added a commit that referenced this issue Apr 29, 2019

Fixes #7845 (Cannot raise generic exception)
(cherry picked from commit 541c2a3)

narimiran added a commit that referenced this issue Apr 29, 2019

Fixes #7845 (Cannot raise generic exception)
(cherry picked from commit 541c2a3)
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.