Fixed generic distinct conversions for 'var' (#18837)

* SameTypeAux now properly traverses generic distincts

* Smarter traversal of distincts

* Removed redundant check

* Fixed nkConv for jsgen

* Added test for non distinct nkConv

* using skiptypes for distinct now

* Fixed genaddr for nkconv
This commit is contained in:
Jason Beetham 2021-10-26 03:27:11 -06:00 • committed by GitHub
commit 83a2515af7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 104 additions and 67 deletions

View file

@ -11,3 +11,9 @@ converter toInt(s: string): int =
let x = (int)"234"
echo x
block: # Test for nkconv
proc foo(o: var int) =
assert o == 0
var a = 0
foo(int(a))