Adjust stdlib to contains* transformation

This commit is contained in:
Denis Zharkov
2015-10-07 19:48:33 +03:00
parent 14f93a88c4
commit 888f8cc548
8 changed files with 19 additions and 20 deletions
@@ -230,7 +230,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 fun contains(o: Any?): Boolean = this@asList.contains(o as T)
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]
override fun indexOf(o: Any?): Int = this@asList.indexOf(o as T)