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

Fixes #10514 #12268

Merged
merged 3 commits into from
Sep 28, 2019
Merged

Fixes #10514 #12268

merged 3 commits into from
Sep 28, 2019

Conversation

Clyybber
Copy link
Contributor

Reboot of #10515
Credit goes to LemonBoy

@Clyybber
Copy link
Contributor Author

Clyybber commented Sep 26, 2019

The test case failure happens because now the compiler is more correct:

const SOMECONST = 0.int

let SOMELET = 0.int

var SOMEVAR = 0.int

proc echoInt32(i: int32) =
  echo i

echoInt32(SOMECONST) #Will be illegal with this PR
echoInt32(SOMELET) #Already illegal
echoInt32(SOMEVAR) #Already illegal

@Clyybber
Copy link
Contributor Author

PR to correct it in the package: GULPF/tiny_sqlite#1

@Araq Araq merged commit 85db42a into nim-lang:devel Sep 28, 2019
rayman22201 pushed a commit to rayman22201/Nim that referenced this pull request Oct 4, 2019
* Fixes nim-lang#10514

(cherry picked from commit f6f789b)

* Add comment

* Add changelog entry
alehander92 pushed a commit to alehander92/Nim that referenced this pull request Dec 2, 2019
* Fixes nim-lang#10514

(cherry picked from commit f6f789b)

* Add comment

* Add changelog entry
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.

3 participants