hylo icon indicating copy to clipboard operation
hylo copied to clipboard

Make sure mutation markers are there when needed

Open kyouko-taiga opened this issue 8 months ago • 0 comments

Mutation markers should be required by the compiler on every expression appearing as argument to an inout or set parameter.

For example, this program should not compile:

public fun main() {
  var x = 0
  x += 1
}

A mutation marker is needed on the LHS of the increment.

kyouko-taiga avatar Dec 05 '23 08:12 kyouko-taiga