diff options
author | Jason Beetham <beefers331@gmail.com> | 2021-10-26 03:27:11 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 11:27:11 +0200 |
commit | 83a2515af7aeb9a1c12015321243399a0d1f4c95 (patch) | |
tree | c660cd8c910c3e4687a08cf9e63828365f695b1f /tests/converter | |
parent | 3ecb369ca1a12754486429bda4ab0bc60f9b86d7 (diff) | |
download | Nim-83a2515af7aeb9a1c12015321243399a0d1f4c95.tar.gz |
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
Diffstat (limited to 'tests/converter')
-rw-r--r-- | tests/converter/texplicit_conversion.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/converter/texplicit_conversion.nim b/tests/converter/texplicit_conversion.nim index 6b2e96faf..e36d78ad5 100644 --- a/tests/converter/texplicit_conversion.nim +++ b/tests/converter/texplicit_conversion.nim @@ -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)) \ No newline at end of file |