From 4e1e231e29491b856ed55c79712201a4843f9854 Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Fri, 29 Jan 2021 05:26:36 -0600 Subject: fix floats slice (#16853) * see whether it breaks * fix * fix * minor * fix * add enum * use Ordinal types * fix tests * fix * another style * fix remainning cases --- tests/errmsgs/t10735.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/errmsgs/t10735.nim b/tests/errmsgs/t10735.nim index 514c4f101..307acac2d 100644 --- a/tests/errmsgs/t10735.nim +++ b/tests/errmsgs/t10735.nim @@ -12,15 +12,15 @@ proc `[]`(s: var string; i: BackwardsIndex): var char first type mismatch at position: 0 proc `[]`[I: Ordinal; T](a: T; i: I): T first type mismatch at position: 0 -proc `[]`[Idx, T, U, V](a: array[Idx, T]; x: HSlice[U, V]): seq[T] +proc `[]`[Idx, T; U, V: Ordinal](a: array[Idx, T]; x: HSlice[U, V]): seq[T] first type mismatch at position: 0 proc `[]`[Idx, T](a: array[Idx, T]; i: BackwardsIndex): T first type mismatch at position: 0 proc `[]`[Idx, T](a: var array[Idx, T]; i: BackwardsIndex): var T first type mismatch at position: 0 -proc `[]`[T, U, V](s: openArray[T]; x: HSlice[U, V]): seq[T] +proc `[]`[T, U: Ordinal](s: string; x: HSlice[T, U]): string first type mismatch at position: 0 -proc `[]`[T, U](s: string; x: HSlice[T, U]): string +proc `[]`[T; U, V: Ordinal](s: openArray[T]; x: HSlice[U, V]): seq[T] first type mismatch at position: 0 proc `[]`[T](s: openArray[T]; i: BackwardsIndex): T first type mismatch at position: 0 -- cgit 1.4.1-2-gfad0