diff options
author | narimiran <narimiran@disroot.org> | 2019-01-09 16:26:18 +0100 |
---|---|---|
committer | narimiran <narimiran@disroot.org> | 2019-01-16 09:45:51 +0100 |
commit | be6456f0f41a06ff2ed05c76cbaff4b087cd8b31 (patch) | |
tree | d1a78414717e8f8b64ea3e39ed91e9d9ee049f42 /tests/errmsgs | |
parent | b097081f1049f17b25a3dbfa5746263854cec581 (diff) | |
download | Nim-be6456f0f41a06ff2ed05c76cbaff4b087cd8b31.tar.gz |
better docs: strutils
Diffstat (limited to 'tests/errmsgs')
-rw-r--r-- | tests/errmsgs/tunknown_named_parameter.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/errmsgs/tunknown_named_parameter.nim b/tests/errmsgs/tunknown_named_parameter.nim index b6b855136..8a3bcaf03 100644 --- a/tests/errmsgs/tunknown_named_parameter.nim +++ b/tests/errmsgs/tunknown_named_parameter.nim @@ -2,10 +2,6 @@ discard """ cmd: "nim check $file" errormsg: "type mismatch: got <string, set[char], maxsplits: int literal(1)>" nimout: ''' -proc rsplit(s: string; sep: string; maxsplit: int = -1): seq[string] - first type mismatch at position: 2 - required type: string - but expression '{':'}' is of type: set[char] proc rsplit(s: string; sep: char; maxsplit: int = -1): seq[string] first type mismatch at position: 2 required type: char @@ -13,6 +9,10 @@ proc rsplit(s: string; sep: char; maxsplit: int = -1): seq[string] proc rsplit(s: string; seps: set[char] = Whitespace; maxsplit: int = -1): seq[string] first type mismatch at position: 3 unknown named parameter: maxsplits +proc rsplit(s: string; sep: string; maxsplit: int = -1): seq[string] + first type mismatch at position: 2 + required type: string + but expression '{':'}' is of type: set[char] expression: rsplit("abc:def", {':'}, maxsplits = 1) ''' |