Add more tests for PropertyAccessorDescriptor.isDeafult() usages

This commit is contained in:
Nikolay Krasko
2016-06-18 21:47:38 +03:00
committed by Nikolay Krasko
parent c936b3f3e0
commit eee45e91ce
21 changed files with 184 additions and 0 deletions
@@ -0,0 +1,8 @@
LineBreakpoint created at privatePropertyWithExplicitDefaultGetter.kt:7
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! privatePropertyWithExplicitDefaultGetter.PrivatePropertyWithExplicitDefaultGetterKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
privatePropertyWithExplicitDefaultGetter.kt:7
Compile bytecode for base.a
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,18 @@
package privatePropertyWithExplicitDefaultGetter
fun main(args: Array<String>) {
val base = Some()
//Breakpoint!
args.size
}
annotation class Small
class Some {
private val a: Int = 1
@Small get
}
// EXPRESSION: base.a
// RESULT: java.lang.NoSuchMethodError : Method not found: MemberDescription(ownerInternalName = privatePropertyWithExplicitDefaultGetter/Some, name = getA, desc = ()I, isStatic = false)