summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tests/errmsgs/tshow_asgn.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/errmsgs/tshow_asgn.nim b/tests/errmsgs/tshow_asgn.nim
index cdd325b93..250f786e2 100644
--- a/tests/errmsgs/tshow_asgn.nim
+++ b/tests/errmsgs/tshow_asgn.nim
@@ -7,7 +7,7 @@ discard """
 
 # bug #5430
 
-proc random*[T](x: Slice[T, T]): T =
+proc random*[T](x: Slice[T]): T =
   ## For a slice `a .. b` returns a value in the range `a .. b-1`.
   result = int(x.b - x.a) + x.a