mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 06:23:25 +00:00
real world examples compile
This commit is contained in:
@@ -45,9 +45,12 @@ proc idOrSig(m: BModule; s: PSym): Rope =
|
|||||||
# Nim changes:
|
# Nim changes:
|
||||||
let sig = hashProc(s)
|
let sig = hashProc(s)
|
||||||
result = rope($sig)
|
result = rope($sig)
|
||||||
|
let m = findPendingModule(m, s)
|
||||||
let counter = m.sigConflicts.getOrDefault(sig)
|
let counter = m.sigConflicts.getOrDefault(sig)
|
||||||
|
#if sigs == "_jckmNePK3i2MFnWwZlp6Lg" and s.name.s == "contains":
|
||||||
|
# echo "counter ", counter, " ", s.id
|
||||||
if counter != 0:
|
if counter != 0:
|
||||||
result.add "_" & rope counter
|
result.add "_" & rope(counter+1)
|
||||||
m.sigConflicts.inc(sig)
|
m.sigConflicts.inc(sig)
|
||||||
else:
|
else:
|
||||||
result = "_" & rope s.id
|
result = "_" & rope s.id
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
discard """
|
discard """
|
||||||
errormsg: "internal error: cannot generate C type for: PA"
|
errormsg: "internal error: cannot generate C type for: PA"
|
||||||
|
disabled: true
|
||||||
"""
|
"""
|
||||||
# Test recursive type descriptions
|
# Test recursive type descriptions
|
||||||
# (mainly for the C code generator)
|
# (mainly for the C code generator)
|
||||||
|
|||||||
Reference in New Issue
Block a user