質問

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