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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top