Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top