Introduce a workaround in interpreter tests to make them pass
There is a problem with ranges and iterators. To work properly they must be resolved firstly, before operator rangeTo.
This commit is contained in:
committed by
TeamCityServer
parent
44e1b61e6c
commit
4f15bd4817
@@ -1,3 +1,7 @@
|
||||
// this hack is used to ensure that iterator will be resolved first
|
||||
@CompileTimeCalculation internal class CharProgressionIterator(first: Char, last: Char, val step: Int) : CharIterator()
|
||||
@CompileTimeCalculation public class CharRange(start: Char, endInclusive: Char) : CharProgression(start, endInclusive, 1), ClosedRange<Char>
|
||||
|
||||
fun compareTo(first: Char, second: Char) = first.compareTo(second)
|
||||
|
||||
fun plus(first: Char, second: Int) = first.plus(second)
|
||||
|
||||
Reference in New Issue
Block a user