Add ir interpreter tests

This commit is contained in:
Ivan Kylchik
2021-05-19 16:27:03 +03:00
committed by TeamCityServer
parent cc2d7340dc
commit e28ab45c51
115 changed files with 5104 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import kotlin.collections.*
@CompileTimeCalculation
class B(val b: Int) {
override fun equals(other: Any?): Boolean {
other as? B ?: return false
return this.b == other.b
}
override fun toString(): String = "B($b)"
}
const val areEquals = <!EVALUATED: `true`!>listOf(B(1), B(2)) == listOf(B(1), B(2))<!>
const val asString = listOf(B(1), B(2)).<!EVALUATED: `[B(1), B(2)]`!>toString()<!>