all repos — min @ fb1ce683121ff94e869c64c0248bbf318a24fbe8

A small but practical concatenative programming language.

Fixed incorrect order of expected symbols in expect error message (#118)
h3rald h3rald@h3rald.com
Sat, 30 Jan 2021 20:22:46 +0000
commit

fb1ce683121ff94e869c64c0248bbf318a24fbe8

parent

f0803f8ce28de9a644a2e9badd6f8a4b575391ac

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M minpkg/core/utils.nimminpkg/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.nimminpkg/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"):