Add test on obsolete issue

#KT-15196 Obsolete
This commit is contained in:
Denis Zharkov
2017-02-08 18:37:32 +03:00
parent b989bfce59
commit 1f179a6f01
5 changed files with 33 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// WITH_RUNTIME
fun foo() {
val array = Array(0, { IntArray(0) } )
array.forEach { println(it.asList()) }
}
fun box(): String {
foo() // just to be sure, that no exception happens
return "OK"
}
@@ -0,0 +1,5 @@
@kotlin.Metadata
public final class Kt15196Kt {
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
public final static method foo(): void
}