Question

How to write in Kotlin:

flags |= newFlag

Only what I have found is:

flags = flags or newFlag

Is there a build-in bitwise or operator with assignment?

Was it helpful?

Solution

There is no built in bitwise-or assignment operator in Kotlin (yet).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top