https://kotlinlang.org logo
#announcements
Title
# announcements
b

bdawg.io

06/06/2018, 9:50 PM
^^ This worked for me in Kotlin 1.2.41 update: it fails if I nest it inside of another class
Copy code
class Foo {
    enum class Animal {
        CAT, DOG
    }

    operator fun Animal.inc(): Animal = TODO()
}