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
+11
View File
@@ -0,0 +1,11 @@
const val range = (1..10).<!EVALUATED: `1`!>first<!>
@CompileTimeCalculation
fun getIterator(first: Int, last: Int): Int {
val iterator = (first..last).iterator()
iterator.nextInt()
iterator.nextInt()
iterator.nextInt()
return iterator.nextInt()
}
const val testIterator = <!EVALUATED: `4`!>getIterator(1, 10)<!>