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

Yet another change to evalOnce #8578

Closed
wants to merge 1 commit into from
Closed

Conversation

LemonBoy
Copy link
Contributor

@LemonBoy LemonBoy commented Aug 8, 2018

Simplify the checks in order not to break the bootstrap and possibly
cover more cases that were previously ignored.

Fixes #8577

CC @timotheecour

Simplify the checks in order not to break the bootstrap and possibly
cover more cases that were previously ignored.

Fixes nim-lang#8577
@timotheecour
Copy link
Member

timotheecour commented Aug 8, 2018

super cool, seems to work after i patched it, thanks! btw here's another bug with mapIt, but less serious since workaround for it are easier: #8580

@timotheecour
Copy link
Member

timotheecour commented Aug 9, 2018

another corner case, but less serious

  block:
    # BUG: Error: invalid type: 'openarray[int]' for let
    let foo2 = openArray[int]([1,2]).mapIt(it)
  block:
    # ok
    let foo2 = openArray[int]([1,2]).map(proc(a:int):auto=a*10)
    echo foo2

Copy link
Member

@timotheecour timotheecour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do not pull, I have a better fix in progress => #8584

@LemonBoy LemonBoy closed this Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants