Add ir interpreter tests
This commit is contained in:
committed by
TeamCityServer
parent
cc2d7340dc
commit
e28ab45c51
+11
@@ -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)<!>
|
||||
Reference in New Issue
Block a user