[LL API] Support code fragment compilation

This commit is contained in:
Yan Zhulanow
2023-06-20 01:46:50 +09:00
committed by Space Team
parent 9446118d7f
commit e1db3c88cf
126 changed files with 2439 additions and 14 deletions
@@ -0,0 +1,22 @@
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()
}