Skip to content

Assign value of an array using another array #464

Description

@wmanshu

Is it possible to support such assignment:

struct AData {
  var amount: [Int]

  public init(_amount: [Int])
  mutates (amount)
  {
    self.amount = _amount
  }
}

Also, this now gives anIllegal modification of variable not declared in 'mutates(...)' error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions