https://kotlinlang.org logo
b

bdawg.io

06/06/2018, 9:34 PM
Has anyone experienced weird issues when overloading the
inc
operator? I’m using
Copy code
inline operator fun MyStateEnum.inc(): MyStateEnum = getCurrentState()
and get the error
Copy code
'operator' modifier is inapplicable on this function: receiver must be a supertype of the return type