Files
kotlin-fork/analysis/analysis-api/testData/components/compilerFacility/compilation/classKinds.kt
T
2023-08-07 16:22:01 +00:00

22 lines
426 B
Kotlin
Vendored

interface Intf {
fun run()
}
abstract class Ordinary
annotation class Anno
@Anno
class Generic<T> : Ordinary(), Intf {
override fun run() {}
}
enum class Direction {
NORTH, SOUTH, WEST, EAST
}
sealed class Operation {
class Add(val firstValue: Int, val secondValue: Int) : Operation()
class Subtract(val minuend: Int, val subtrahend: Int) : Operation()
class Negate(val value: Int) : Operation()
}