Skip to content

Renaming failure in generic parameter lists #20

@tothambrus11

Description

@tothambrus11
/// Wrapper type for a named tuple element.
public struct N<Name, Type> {
  public var value: Type

  public memberwise init

  public static fun create<K where K == Name>(value: sink Type) -> N<Name, Type> {
    N<Name, Type>(value: value)
  }
}

given<Name, U is Deinitializable> N<Name, U> is Deinitializable {
}
given<Name, TU is Movable> N<Name, TU> is Movable { // renaming TU fails to apply edits
}

Interestingly, go to declaration works from right TU to left TU, but find references doesn't find anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions