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

{.borrow.} hangs compiler on non-distinct type (should produce an error or warning) #10791

Closed
awr1 opened this issue Mar 5, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@awr1
Copy link
Contributor

commented Mar 5, 2019

type Foo* {.borrow: `.`.} = object
  n: int

var bar: Foo
bar.n = 2

Encountered this error by accident when I had a {.borrow.} as part of a custom pragma, took a long time to debug as the compiler just got stuck without useful information.

@Araq Araq closed this in 3c0f01f Mar 6, 2019

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.