Code fragment analysis: analyze parents if there's no sensible scope for the default element (KT-29179)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package kt29179
|
||||
|
||||
class A {
|
||||
val a = 1
|
||||
fun bar() = 2
|
||||
fun foo() {
|
||||
3
|
||||
//Breakpoint!
|
||||
.toString()
|
||||
}
|
||||
}
|
||||
|
||||
fun main() {
|
||||
A().foo()
|
||||
}
|
||||
|
||||
// EXPRESSION: bar()
|
||||
// RESULT: 2: I
|
||||
|
||||
// EXPRESSION: this
|
||||
// RESULT: instance of kt29179.A(id=ID): Lkt29179/A;
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at kt29179.kt:9
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
kt29179.kt:9
|
||||
Compile bytecode for bar()
|
||||
Compile bytecode for this
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user