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

codegen bug with arc #13105

Closed
disruptek opened this issue Jan 11, 2020 · 0 comments
Closed

codegen bug with arc #13105

disruptek opened this issue Jan 11, 2020 · 0 comments

Comments

@disruptek
Copy link
Contributor

@disruptek disruptek commented Jan 11, 2020

type
  Result[T, E] = object
    a: T
    b: E
  D = ref object
    x: int
  R = Result[D, int]

# ok
for n in [R(a: D(x: 3)), R(a: D(x: 3))]:
  discard

when true:
  # codegen error
  for n in [R(b: 1), R(b: 2)]:
    discard
Araq added a commit that referenced this issue Jan 14, 2020
@Araq Araq closed this in 9fc04a5 Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.