diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2021-01-29 05:26:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 12:26:36 +0100 |
commit | 4e1e231e29491b856ed55c79712201a4843f9854 (patch) | |
tree | aa4c96ac05e15f639ef8d11b1d3582452c0f2389 /tests/errmsgs/t10735.nim | |
parent | 44f672a515a2cc88f98f3e249a590fc4eb09a751 (diff) | |
download | Nim-4e1e231e29491b856ed55c79712201a4843f9854.tar.gz |
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
Diffstat (limited to 'tests/errmsgs/t10735.nim')
-rw-r--r-- | tests/errmsgs/t10735.nim | 6 |
1 files changed, 3 insertions, 3 deletions
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 |