Turn off inlining. May be it'll help with KT-2314.

This commit is contained in:
Pavel V. Talanov
2012-07-02 17:28:27 +04:00
parent da24b36071
commit 4b15023aec
4 changed files with 42 additions and 9 deletions
@@ -0,0 +1,25 @@
package foo
import java.util.*
fun box(): Boolean {
val data = arrayList("foo", "bar")
if (data.head != "foo") {
return false
}
return true
}
public inline fun arrayList<T>(vararg values: T) : ArrayList<T> {
val c = ArrayList<T>()
for (v in values) {
c.add(v)
}
return c
}
public inline val <T> ArrayList<T>.head : T
get() {
return get(0)
}