Fixed incorrect order of expected symbols in expect error message (#118)
h3rald h3rald@h3rald.com
Sat, 30 Jan 2021 20:22:46 +0000
2 files changed,
2 insertions(+),
2 deletions(-)
M
minpkg/core/utils.nim
→
minpkg/core/utils.nim
@@ -251,7 +251,7 @@ if generics.hasKey(e):
pelements.add(generics[e]) else: pelements.add e - let stack = pelements.reverse.join(" ") + let stack = pelements.join(" ") result = "Incorrect values found on the stack:\n" result &= "- expected: " & stack & " $1\n" % sym var other = ""
M
minpkg/lib/min_lang.nim
→
minpkg/lib/min_lang.nim
@@ -225,7 +225,7 @@ if check:
if v == "==>": o = true elif not i.validType(v) and not generics.hasKey(v): - raiseInvalid("Invalid type specified in signature at position $#" % $(c+1)) + raiseInvalid("Invalid type '$#' specified in signature at position $#" % [v, $(c+1)]) else: if o: if tv.symVal == "typeclass" and (outExpects.len > 0 or v != "bool"):