Files
kotlin-fork/j2k/tests/testData/ast/issues/kt-1074.kt
T
Pavel V. Talanov 21bc2887d2 Converter:
Omit Unit return type
Refactor handling of Unit type: extract separate object UnitType
2013-12-22 15:53:14 +04:00

13 lines
396 B
Kotlin

package demo
open class Test() {
class object {
open fun subListRangeCheck(fromIndex : Int, toIndex : Int, size : Int) {
if (fromIndex < 0)
throw IndexOutOfBoundsException("fromIndex = " + fromIndex)
if (toIndex > size)
throw IndexOutOfBoundsException("toIndex = " + toIndex)
if (fromIndex > toIndex)
throw IllegalArgumentException("fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")")
}
}
}