Fix evaluate for internal functions (KT-15854)
#KT-15854 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at internalFunctionEvaluate.kt:10
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
internalFunctionEvaluate.kt:10
|
||||
Compile bytecode for sc.f()
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at internalProperty.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
internalProperty.kt:5
|
||||
Compile bytecode for MyClass().internalVal
|
||||
Compile bytecode for MyClass().internalValWithGetter
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package internalFunctionEvaluate
|
||||
|
||||
class SomeClass {
|
||||
internal fun f(): Int = 42
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val sc = SomeClass()
|
||||
//Breakpoint!
|
||||
val x = 12
|
||||
}
|
||||
|
||||
// EXPRESSION: sc.f()
|
||||
// RESULT: 42: I
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package internalProperty
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
args.size
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
internal val internalVal = 42
|
||||
internal val internalValWithGetter: Int get() = 24
|
||||
}
|
||||
|
||||
// EXPRESSION: MyClass().internalVal
|
||||
// RESULT: 42: I
|
||||
|
||||
// EXPRESSION: MyClass().internalValWithGetter
|
||||
// RESULT: 24: I
|
||||
Reference in New Issue
Block a user