Adjust stdlib to isEmpty transformation

This commit is contained in:
Denis Zharkov
2015-10-09 11:25:19 +03:00
parent cfc9d19825
commit 61459961fc
10 changed files with 32 additions and 30 deletions
@@ -229,7 +229,7 @@ fun specialJVM(): List<GenericFunction> {
"""
return object : AbstractList<T>(), RandomAccess {
override val size: Int get() = this@asList.size()
override fun isEmpty(): Boolean = this@asList.isEmpty()
override val isEmpty: Boolean get() = this@asList.isEmpty()
override fun contains(o: T): Boolean = this@asList.contains(o)
override fun iterator(): MutableIterator<T> = this@asList.iterator() as MutableIterator<T>
override fun get(index: Int): T = this@asList[index]