Add test for KT-5554: coerce arrays in return

#KT-5554 Fixed
This commit is contained in:
Natalia Ukhorskaya
2014-09-11 13:10:07 +04:00
parent e0469de5be
commit 32f6d7feac
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,8 @@
LineBreakpoint created at kt5554OnlyIntsShouldBeCoerced.kt:5
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! kt5554OnlyIntsShouldBeCoerced.Kt5554OnlyIntsShouldBeCoercedPackage
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
kt5554OnlyIntsShouldBeCoerced.kt:4
Compile bytecode for Class.forName("java.lang.Object").getGenericInterfaces()
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,9 @@
package kt5554OnlyIntsShouldBeCoerced
fun main(args: Array<String>) {
//Breakpoint!
args.size
}
// EXPRESSION: Class.forName("java.lang.Object").getGenericInterfaces()
// RESULT: instance of java.lang.Class[0] (id=ID): [Ljava/lang/Class;