// WITH_RUNTIME //DISABLE-ERRORS enum class E(n: Int) { A(1) { override fun foo(x: Int): Int { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }, B(2) { override fun foo(x: Int): Int { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }, C(3) { override fun foo(x: Int): Int { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }; abstract fun foo(x: Int): Int }