mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
* 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
19 lines
241 B
Nim
19 lines
241 B
Nim
discard """
|
|
output: "234"
|
|
"""
|
|
|
|
# bug #4432
|
|
|
|
import strutils
|
|
|
|
converter toInt(s: string): int =
|
|
result = parseInt(s)
|
|
|
|
let x = (int)"234"
|
|
echo x
|
|
|
|
block: # Test for nkconv
|
|
proc foo(o: var int) =
|
|
assert o == 0
|
|
var a = 0
|
|
foo(int(a)) |