Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-59610

[TC] [Functional] Slices package should accept type aliases

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • master
    • master
    • tools-common
    • None
    • 0

    Description

      What's the issue?
      Users currently have to type convert to use the slices functions when using a type alias.

      func Filter[S []E, E any](s S, p ...func(e E) bool) S
      

      What's the fix?

      func Filter[S ~[]E, E any](s S, p ...func(e E) bool) S
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            james.lee James Lee
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty