diff options
author | Araq <rumpf_a@web.de> | 2014-02-15 23:40:29 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-02-15 23:40:29 +0100 |
commit | 228d5173ffe3f7b0b474448994c8d520d916bb77 (patch) | |
tree | 13421d4839b420759ffd1e05168d4d1055657e35 /tests | |
parent | d142824d65f1775c703075c75e128e7fcbf3d332 (diff) | |
download | Nim-228d5173ffe3f7b0b474448994c8d520d916bb77.tar.gz |
nil->discard
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manyloc/argument_parser/argument_parser.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manyloc/argument_parser/argument_parser.nim b/tests/manyloc/argument_parser/argument_parser.nim index 95c71c08c..1edda4aa0 100644 --- a/tests/manyloc/argument_parser/argument_parser.nim +++ b/tests/manyloc/argument_parser/argument_parser.nim @@ -178,14 +178,14 @@ template new_parsed_parameter*(tkind: Tparam_kind, expr): Tparsed_parameter = ## #parsed_param3 = new_parsed_parameter(PK_INT, "231") var result {.gensym.}: Tparsed_parameter result.kind = tkind - when tkind == PK_EMPTY: nil + when tkind == PK_EMPTY: discard elif tkind == PK_INT: result.int_val = expr elif tkind == PK_BIGGEST_INT: result.big_int_val = expr elif tkind == PK_FLOAT: result.float_val = expr elif tkind == PK_BIGGEST_FLOAT: result.big_float_val = expr elif tkind == PK_STRING: result.str_val = expr elif tkind == PK_BOOL: result.bool_val = expr - elif tkind == PK_HELP: nil + elif tkind == PK_HELP: discard else: {.error: "unknown kind".} result |