[LL FIR] rename testdata to testData to avoid copyright generation

We exclude testData pattern from copyright scope
This commit is contained in:
Dmitrii Gridin
2023-09-18 19:33:14 +02:00
committed by Space Team
parent aef5290210
commit 33e6a85a2d
1953 changed files with 2000 additions and 2000 deletions
@@ -0,0 +1,18 @@
fun ex<caret>pression(expression: IrConst<*>) {
when (val kind = expression.kind) {
is Kind.Null -> kind.valueOf(expression)
else -> {}
}
}
sealed class Kind<T>(val asString: String) {
@Suppress("UNCHECKED_CAST")
fun valueOf(aConst: IrConst<*>) = (aConst as IrConst<T>).value
object Null : Kind<Nothing?>("Null")
override fun toString() = asString
}
abstract class IrConst<T> {
abstract var kind: Kind<T>
abstract var value: T
}