diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-30 09:41:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 09:41:50 +0800 |
commit | 358963193f31fd762b8e26ea4cad162c950785db (patch) | |
tree | 4f7dad5bf2c752128a9824800062a19af6419d92 /tests/tuples | |
parent | 31a8cf16bbad69efbfbc6f7a593f2141cba06381 (diff) | |
download | Nim-358963193f31fd762b8e26ea4cad162c950785db.tar.gz |
cleanup old codes (#16173)
Diffstat (limited to 'tests/tuples')
-rw-r--r-- | tests/tuples/tuple_with_nil.nim | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/tuples/tuple_with_nil.nim b/tests/tuples/tuple_with_nil.nim index b3ed2a96b..7136c8cab 100644 --- a/tests/tuples/tuple_with_nil.nim +++ b/tests/tuples/tuple_with_nil.nim @@ -1,23 +1,16 @@ import macros -from strutils import IdentStartChars import parseutils import unicode import math -import fenv import pegs import streams type - FormatError = object of Exception ## Error in the format string. + FormatError = object of CatchableError ## Error in the format string. Writer = concept W ## Writer to output a character `c`. - when (NimMajor, NimMinor, NimPatch) > (0, 10, 2): - write(W, 'c') - else: - block: - var x: W - write(x, char) + write(W, 'c') FmtAlign = enum ## Format alignment faDefault ## default for given format type |