Regression test for KT-3238. The issue itself is incorrect but test may be useful

This commit is contained in:
Maxim Shafirov
2013-01-13 03:09:40 +04:00
parent 5eae85dff5
commit c293fe124d
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,12 @@
object Obj {
class Inner() {
fun ok() = "OK"
}
}
fun box() : String {
val klass = Class.forName("Obj\$Inner")!!
val cons = klass.getConstructors()!![0]
val inner = cons.newInstance(* Array(0){""})
return "OK"
}