Files
kotlin-fork/idea/resources/intentionDescriptions/ConvertEnumToSealedClassIntention/after.kt.template
T
2016-10-13 19:00:56 +03:00

9 lines
159 B
Plaintext

sealed class MyEnum(val s: String = "") {
fun foo() {
}
object FOO : MyEnum("FOO")
object BAR : MyEnum("BAR")
object DEFAULT : MyEnum()
}