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

Internal error when calling `=destroy` without declaration #9675

Closed
alaviss opened this issue Nov 10, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@alaviss
Copy link
Contributor

commented Nov 10, 2018

Example

type
  A = object
    a: int

var a: A
`=destroy` a

Current Output

Hint: used config file 'config/nim.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
test.nim(6, 12) Error: internal error: genMagicExpr: mAsgn

Expected Output

Show error about `=destroy` not being declared

Nim version

Nim Compiler Version 0.19.9 [Linux: amd64]
Compiled at 2018-11-09
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: 8d850f7a69d473360c5b1a9db9fd998ab9b5dff4
active boot switches: -d:release

alaviss pushed a commit to alaviss/Nim that referenced this issue Nov 25, 2018

Leorize

@alaviss alaviss referenced this issue Nov 25, 2018

Merged

fixes #7365 #9797

alaviss added a commit to alaviss/Nim that referenced this issue Nov 26, 2018

@Araq Araq closed this in eb919c3 Nov 26, 2018

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.