Move debugger test data to the new location
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package accessors
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
A().test()
|
||||
}
|
||||
|
||||
class A {
|
||||
fun test() {
|
||||
//Breakpoint!
|
||||
foo()
|
||||
prop
|
||||
prop = 2
|
||||
}
|
||||
|
||||
companion object {
|
||||
private fun foo() {
|
||||
val a = 1
|
||||
}
|
||||
|
||||
private var prop: Int = 2
|
||||
get() {
|
||||
return 1
|
||||
}
|
||||
set(i: Int) {
|
||||
field = i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 17
|
||||
// SKIP_SYNTHETIC_METHODS: false
|
||||
@@ -0,0 +1,24 @@
|
||||
LineBreakpoint created at accessors.kt:10
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
accessors.kt:10
|
||||
accessors.kt:15
|
||||
accessors.kt:17
|
||||
accessors.kt:18
|
||||
accessors.kt:15
|
||||
accessors.kt:11
|
||||
accessors.kt:15
|
||||
accessors.kt:22
|
||||
accessors.kt:15
|
||||
accessors.kt:11
|
||||
accessors.kt:12
|
||||
accessors.kt:15
|
||||
accessors.kt:25
|
||||
accessors.kt:7
|
||||
accessors.kt:26
|
||||
accessors.kt:15
|
||||
accessors.kt:13
|
||||
accessors.kt:5
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package continueLabel
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
for(el in 0..1) {
|
||||
val a1 = 1
|
||||
if (el == 0) {
|
||||
continue
|
||||
}
|
||||
val a2 = 2
|
||||
}
|
||||
val a3 = 3
|
||||
}
|
||||
|
||||
// STEP_INTO: 9
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
LineBreakpoint created at continueLabel.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
continueLabel.kt:5
|
||||
continueLabel.kt:6
|
||||
continueLabel.kt:7
|
||||
continueLabel.kt:8
|
||||
continueLabel.kt:5
|
||||
continueLabel.kt:6
|
||||
continueLabel.kt:7
|
||||
continueLabel.kt:10
|
||||
continueLabel.kt:5
|
||||
continueLabel.kt:12
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package defaultAccessors
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
A().testPublicPropertyInClass()
|
||||
testPublicPropertyInLibrary()
|
||||
}
|
||||
|
||||
class A: B() {
|
||||
fun testPublicPropertyInClass() {
|
||||
prop
|
||||
prop = 2
|
||||
}
|
||||
}
|
||||
|
||||
open class B {
|
||||
public var prop: Int = 1
|
||||
}
|
||||
|
||||
fun testPublicPropertyInLibrary() {
|
||||
val myClass = customLib.simpleLibFile.B()
|
||||
myClass.prop
|
||||
myClass.prop = 2
|
||||
}
|
||||
|
||||
// STEP_INTO: 21
|
||||
// SKIP_SYNTHETIC_METHODS: true
|
||||
// SKIP_CONSTRUCTORS: true
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
LineBreakpoint created at defaultAccessors.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
defaultAccessors.kt:5
|
||||
defaultAccessors.kt:11
|
||||
defaultAccessors.kt:17
|
||||
defaultAccessors.kt:11
|
||||
defaultAccessors.kt:12
|
||||
defaultAccessors.kt:17
|
||||
defaultAccessors.kt:13
|
||||
defaultAccessors.kt:6
|
||||
defaultAccessors.kt:21
|
||||
defaultAccessors.kt:22
|
||||
simpleLibFile.kt:8
|
||||
defaultAccessors.kt:22
|
||||
defaultAccessors.kt:23
|
||||
simpleLibFile.kt:8
|
||||
defaultAccessors.kt:24
|
||||
defaultAccessors.kt:7
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
package forLoop
|
||||
|
||||
// KT-5664 Wrong stepping through for loop
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
var x = 1
|
||||
for (i in 0..1) {
|
||||
x++
|
||||
}
|
||||
var y = 1
|
||||
for (i in 0..1) {
|
||||
y++
|
||||
val y1 = y
|
||||
}
|
||||
val z = 1
|
||||
}
|
||||
|
||||
// STEP_INTO: 14
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at forLoop.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
forLoop.kt:6
|
||||
forLoop.kt:7
|
||||
forLoop.kt:8
|
||||
forLoop.kt:7
|
||||
forLoop.kt:8
|
||||
forLoop.kt:7
|
||||
forLoop.kt:10
|
||||
forLoop.kt:11
|
||||
forLoop.kt:12
|
||||
forLoop.kt:13
|
||||
forLoop.kt:11
|
||||
forLoop.kt:12
|
||||
forLoop.kt:13
|
||||
forLoop.kt:11
|
||||
forLoop.kt:15
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package functionReference
|
||||
|
||||
fun test(s: () -> String) {
|
||||
s()
|
||||
}
|
||||
|
||||
fun a() = "OK"
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
test(::a)
|
||||
}
|
||||
// NB: stepping is not clear
|
||||
// STEP_INTO: 7
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
LineBreakpoint created at functionReference.kt:11
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
functionReference.kt:11
|
||||
functionReference.kt:4
|
||||
functionReference.kt:11
|
||||
functionReference.kt:7
|
||||
functionReference.kt:4
|
||||
functionReference.kt:5
|
||||
functionReference.kt:12
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package inlineClass
|
||||
|
||||
interface A {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
@Suppress("EXPERIMENTAL_FEATURE_WARNING")
|
||||
inline class B(val a: String) : A {
|
||||
override fun foo() {
|
||||
println("foo")
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val b = B("")
|
||||
//Breakpoint!
|
||||
b.foo()
|
||||
}
|
||||
|
||||
// STEP_INTO: 1
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at inlineClass.kt:17
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineClass.kt:17
|
||||
inlineClass.kt:10
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
foo
|
||||
@@ -0,0 +1,10 @@
|
||||
package inlineDex
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
myPrint("OK")
|
||||
}
|
||||
|
||||
inline fun myPrint(s: String) {
|
||||
val z = s;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at inlineDex.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineDex.kt:5
|
||||
inlineDex.kt:9
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,31 @@
|
||||
package inlineOnly
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
myPrint("OK")
|
||||
|
||||
forEach { print2("123")}
|
||||
|
||||
println("OK") //stdlib test
|
||||
}
|
||||
|
||||
fun print2(s: String){
|
||||
val z = s;
|
||||
}
|
||||
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.InlineOnly
|
||||
inline fun myPrint(s: String) {
|
||||
val z = s;
|
||||
}
|
||||
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.InlineOnly
|
||||
inline fun forEach(s: () -> Unit) {
|
||||
for (i in 1..2) {
|
||||
s()
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 9
|
||||
// TRACING_FILTERS_ENABLED: false
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at inlineOnly.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineOnly.kt:5
|
||||
inlineOnly.kt:7
|
||||
inlineOnly.kt:13
|
||||
inlineOnly.kt:14
|
||||
inlineOnly.kt:7
|
||||
inlineOnly.kt:13
|
||||
inlineOnly.kt:14
|
||||
inlineOnly.kt:7
|
||||
inlineOnly.kt:9
|
||||
PrintStream.!EXT!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
OK
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package propertyReference
|
||||
|
||||
fun test(s: () -> String) {
|
||||
s()
|
||||
}
|
||||
|
||||
val a: String get() = "OK"
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
test(::a)
|
||||
}
|
||||
// NB: stepping is not clear
|
||||
// STEP_INTO: 7
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
LineBreakpoint created at propertyReference.kt:11
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
propertyReference.kt:11
|
||||
propertyReference.kt:4
|
||||
propertyReference.kt:11
|
||||
propertyReference.kt:7
|
||||
propertyReference.kt:4
|
||||
propertyReference.kt:5
|
||||
propertyReference.kt:12
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,8 @@
|
||||
package returnVoid
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
val a = 3
|
||||
}
|
||||
|
||||
// STEP_INTO: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at returnVoid.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
returnVoid.kt:5
|
||||
returnVoid.kt:6
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,13 @@
|
||||
package samAdapter
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
val a = 1
|
||||
runReadAction { 1 }
|
||||
}
|
||||
|
||||
fun runReadAction(action: () -> Int): Int {
|
||||
return forTests.MyJavaClass.runReadAction<Int>(action)
|
||||
}
|
||||
|
||||
// STEP_INTO: 8
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
LineBreakpoint created at samAdapter.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
samAdapter.kt:5
|
||||
samAdapter.kt:6
|
||||
samAdapter.kt:10
|
||||
MyJavaClass.java:21
|
||||
samAdapter.kt:6
|
||||
MyJavaClass.java:21
|
||||
samAdapter.kt:10
|
||||
samAdapter.kt:6
|
||||
samAdapter.kt:7
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package sameFileNames
|
||||
|
||||
fun main() {
|
||||
//Breakpoint!
|
||||
val result = simple.foo()
|
||||
}
|
||||
|
||||
// STEP_INTO: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at sameFileNames.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
sameFileNames.kt:5
|
||||
simpleKt.kt:5
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package siSuspendFun
|
||||
|
||||
import forTests.builder
|
||||
|
||||
private fun foo(): Int {
|
||||
return 42 // 6
|
||||
}
|
||||
|
||||
// One line suspend wihtout doResume
|
||||
suspend fun fourth() = foo() // 5
|
||||
|
||||
// Multiline suspend without doResume
|
||||
suspend fun third() : Int? {
|
||||
return fourth() // 4
|
||||
}
|
||||
|
||||
// One line suspend with doResume
|
||||
suspend fun second(): Int = third()?.let { return it } ?: 0 // 3
|
||||
|
||||
// Multiline suspend with doResume
|
||||
suspend fun first(): Int { //
|
||||
second() // 2
|
||||
return 12
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
builder {
|
||||
//Breakpoint!
|
||||
first() // 1
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 5
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
LineBreakpoint created at siSuspendFun.kt:29
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
siSuspendFun.kt:29
|
||||
siSuspendFun.kt:22
|
||||
siSuspendFun.kt:18
|
||||
siSuspendFun.kt:14
|
||||
siSuspendFun.kt:10
|
||||
siSuspendFun.kt:6
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package skipSimpleGetter
|
||||
|
||||
val top = 1
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = A(1)
|
||||
//Breakpoint!
|
||||
a.a1 + a.a2 + a.a3 + a.a4 + top
|
||||
}
|
||||
|
||||
class A(val a4: Int) {
|
||||
// only init
|
||||
val a1 = 1
|
||||
|
||||
// simple get, expression body
|
||||
val a2: Int = 1
|
||||
get() = field
|
||||
|
||||
// simple get, block body
|
||||
val a3: Int = 1
|
||||
get() {
|
||||
return field
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 3
|
||||
// SKIP_GETTERS: true
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at skipSimpleGetter.kt:8
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
skipSimpleGetter.kt:8
|
||||
skipSimpleGetter.kt:9
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package skipSimpleGetterLocalVal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
class Test {
|
||||
val a2 = 12
|
||||
}
|
||||
|
||||
val t = Test()
|
||||
|
||||
val a1 = 1
|
||||
|
||||
//Breakpoint!
|
||||
a1 + t.a2 // 1
|
||||
|
||||
foo() // 2
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
|
||||
// SKIP_GETTERS: true
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at skipSimpleGetterLocalVal.kt:13
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
skipSimpleGetterLocalVal.kt:13
|
||||
skipSimpleGetterLocalVal.kt:15
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/skipSimpleGetterMethodWithProperty.kt
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
package skipSimpleGetterMethodWithProperty
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
test()
|
||||
foo()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
var a = 12
|
||||
foo()
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
|
||||
// SKIP_GETTERS: true
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at skipSimpleGetterMethodWithProperty.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
skipSimpleGetterMethodWithProperty.kt:5
|
||||
skipSimpleGetterMethodWithProperty.kt:10
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package stepIntoFromInlineFun
|
||||
|
||||
class A()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = A()
|
||||
a.test { it + 1 }
|
||||
val b = 1
|
||||
}
|
||||
|
||||
inline fun A.test(l: (Int) -> Unit) {
|
||||
//Breakpoint!
|
||||
l(11)
|
||||
}
|
||||
|
||||
// STEP_INTO: 1
|
||||
// TRACING_FILTERS_ENABLED: false
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at stepIntoFromInlineFun.kt:13
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stepIntoFromInlineFun.kt:13
|
||||
stepIntoFromInlineFun.kt:7
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package stepIntoInlineFun
|
||||
|
||||
class A()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = A()
|
||||
//Breakpoint!
|
||||
a.test { it + 1 }
|
||||
val b = 1
|
||||
}
|
||||
|
||||
inline fun A.test(l: (Int) -> Unit) {
|
||||
l(11)
|
||||
}
|
||||
|
||||
// STEP_INTO: 2
|
||||
// TRACING_FILTERS_ENABLED: false
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at stepIntoInlineFun.kt:8
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stepIntoInlineFun.kt:8
|
||||
stepIntoInlineFun.kt:13
|
||||
stepIntoInlineFun.kt:8
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package stepIntoStdLibInlineFun
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = listOf(1)
|
||||
//Breakpoint!
|
||||
a.map { it + 1 }
|
||||
val b = 1
|
||||
}
|
||||
|
||||
// STEP_INTO: 1
|
||||
// TRACING_FILTERS_ENABLED: false
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at stepIntoStdLibInlineFun.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stepIntoStdLibInlineFun.kt:6
|
||||
stepIntoStdLibInlineFun.kt:1
|
||||
resuming stepIntoStdLibInlineFun.kt:6
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
package stepIntoSuspendFunctionSimple
|
||||
|
||||
import forTests.builder
|
||||
|
||||
private fun foo() {}
|
||||
|
||||
suspend fun second() {
|
||||
}
|
||||
|
||||
suspend fun first(): Int {
|
||||
second()
|
||||
return 12
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
builder {
|
||||
//Breakpoint!
|
||||
first()
|
||||
foo()
|
||||
}
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at stepIntoSuspendFunctionSimple.kt:18
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
stepIntoSuspendFunctionSimple.kt:18
|
||||
stepIntoSuspendFunctionSimple.kt:10
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
package syntheticMethods
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val d: Base<String> = Derived()
|
||||
//Breakpoint!
|
||||
d.foo("")
|
||||
A().test()
|
||||
A.test()
|
||||
}
|
||||
|
||||
open class Base<T> {
|
||||
open fun foo(t: T) {
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
class Derived: Base<String>() {
|
||||
override fun foo(t: String) {
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
fun test() {
|
||||
lambda {
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
fun lambda(f: () -> Int): Int {
|
||||
return f()
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun test() {
|
||||
lambda {
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
fun lambda(f: () -> Int): Int {
|
||||
return f()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 26
|
||||
// SKIP_SYNTHETIC_METHODS: false
|
||||
// SKIP_CONSTRUCTORS: true
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
LineBreakpoint created at syntheticMethods.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
syntheticMethods.kt:6
|
||||
syntheticMethods.kt:17
|
||||
syntheticMethods.kt:19
|
||||
syntheticMethods.kt:20
|
||||
syntheticMethods.kt:17
|
||||
syntheticMethods.kt:7
|
||||
syntheticMethods.kt:-1
|
||||
syntheticMethods.kt:7
|
||||
syntheticMethods.kt:25
|
||||
syntheticMethods.kt:31
|
||||
syntheticMethods.kt:23
|
||||
syntheticMethods.kt:26
|
||||
syntheticMethods.kt:23
|
||||
syntheticMethods.kt:31
|
||||
syntheticMethods.kt:25
|
||||
syntheticMethods.kt:28
|
||||
syntheticMethods.kt:8
|
||||
syntheticMethods.kt:36
|
||||
syntheticMethods.kt:42
|
||||
syntheticMethods.kt:34
|
||||
syntheticMethods.kt:37
|
||||
syntheticMethods.kt:34
|
||||
syntheticMethods.kt:42
|
||||
syntheticMethods.kt:36
|
||||
syntheticMethods.kt:39
|
||||
syntheticMethods.kt:9
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
package syntheticMethodsSkip
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val d: Base<String> = Derived()
|
||||
//Breakpoint!
|
||||
d.foo("")
|
||||
A().test()
|
||||
A.test()
|
||||
}
|
||||
|
||||
open class Base<T> {
|
||||
open fun foo(t: T) {
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
class Derived: Base<String>() {
|
||||
override fun foo(t: String) {
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
fun test() {
|
||||
lambda {
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
fun lambda(f: () -> Int): Int {
|
||||
return f()
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun test() {
|
||||
lambda {
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
fun lambda(f: () -> Int): Int {
|
||||
return f()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// STEP_INTO: 26
|
||||
// SKIP_SYNTHETIC_METHODS: true
|
||||
// SKIP_CONSTRUCTORS: true
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
LineBreakpoint created at syntheticMethodsSkip.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
syntheticMethodsSkip.kt:6
|
||||
syntheticMethodsSkip.kt:19
|
||||
syntheticMethodsSkip.kt:20
|
||||
syntheticMethodsSkip.kt:7
|
||||
syntheticMethodsSkip.kt:-1
|
||||
syntheticMethodsSkip.kt:7
|
||||
syntheticMethodsSkip.kt:25
|
||||
syntheticMethodsSkip.kt:31
|
||||
syntheticMethodsSkip.kt:26
|
||||
syntheticMethodsSkip.kt:31
|
||||
syntheticMethodsSkip.kt:25
|
||||
syntheticMethodsSkip.kt:28
|
||||
syntheticMethodsSkip.kt:8
|
||||
syntheticMethodsSkip.kt:36
|
||||
syntheticMethodsSkip.kt:42
|
||||
syntheticMethodsSkip.kt:37
|
||||
syntheticMethodsSkip.kt:42
|
||||
syntheticMethodsSkip.kt:36
|
||||
syntheticMethodsSkip.kt:39
|
||||
syntheticMethodsSkip.kt:9
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,51 @@
|
||||
package traits
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
val impl = MyInterfaceImpl()
|
||||
impl.inInterface()
|
||||
impl.propInInterface
|
||||
impl.inInterfaceOverride()
|
||||
impl.propInInterfaceOverride
|
||||
|
||||
val o = object: MyInterface {
|
||||
override fun inInterfaceOverride(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
override val propInInterfaceOverride: Int
|
||||
get() = 1
|
||||
}
|
||||
o.inInterface()
|
||||
o.propInInterface
|
||||
o.inInterfaceOverride()
|
||||
o.propInInterfaceOverride
|
||||
}
|
||||
|
||||
interface MyInterface {
|
||||
fun inInterface(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
val propInInterface: Int
|
||||
get() = 1
|
||||
|
||||
fun inInterfaceOverride(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
val propInInterfaceOverride: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
class MyInterfaceImpl: MyInterface {
|
||||
override fun inInterfaceOverride(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
override val propInInterfaceOverride: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
// STEP_INTO: 38
|
||||
// SKIP_CONSTRUCTORS: true
|
||||
@@ -0,0 +1,34 @@
|
||||
LineBreakpoint created at traits.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
traits.kt:5
|
||||
traits.kt:6
|
||||
traits.kt:41
|
||||
traits.kt:27
|
||||
traits.kt:6
|
||||
traits.kt:7
|
||||
traits.kt:31
|
||||
traits.kt:7
|
||||
traits.kt:8
|
||||
traits.kt:43
|
||||
traits.kt:8
|
||||
traits.kt:9
|
||||
traits.kt:47
|
||||
traits.kt:9
|
||||
traits.kt:11
|
||||
traits.kt:19
|
||||
traits.kt:27
|
||||
traits.kt:19
|
||||
traits.kt:20
|
||||
traits.kt:31
|
||||
traits.kt:20
|
||||
traits.kt:21
|
||||
traits.kt:13
|
||||
traits.kt:21
|
||||
traits.kt:22
|
||||
traits.kt:17
|
||||
traits.kt:22
|
||||
traits.kt:23
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,62 @@
|
||||
package whenExpr
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
val a: Int? = 0 // 5
|
||||
when (a) { // 6
|
||||
1 -> { // 7
|
||||
1 + 1
|
||||
}
|
||||
2 -> { // 10
|
||||
2 + 1
|
||||
}
|
||||
else -> {
|
||||
0 + 0 // 14
|
||||
}
|
||||
}
|
||||
val b = 1 // 17
|
||||
|
||||
val a1: Number? = 0 // 19
|
||||
when (a1) { // 20
|
||||
is Float -> { // 21
|
||||
1 + 1
|
||||
}
|
||||
is Double -> { // 24
|
||||
2 + 1
|
||||
}
|
||||
else -> {
|
||||
0 + 0 // 28
|
||||
}
|
||||
}
|
||||
val b1 = 1 // 31
|
||||
|
||||
val a2: Int? = 2 // 33
|
||||
when (a2) { // 34
|
||||
1 -> { // 35
|
||||
1 + 1
|
||||
}
|
||||
2 -> { // 38
|
||||
2 + 1 // 39
|
||||
}
|
||||
else -> {
|
||||
0 + 0
|
||||
}
|
||||
}
|
||||
val b2 = 1 // 45
|
||||
|
||||
val a3: Number? = 0f // 47
|
||||
when (a3) { // 48
|
||||
is Float -> { // 49
|
||||
1 + 1 // 50
|
||||
}
|
||||
is Double -> {
|
||||
2 + 1
|
||||
}
|
||||
else -> {
|
||||
0 + 0
|
||||
}
|
||||
}
|
||||
val b3 = 1 // 59
|
||||
}
|
||||
|
||||
// STEP_INTO: 22
|
||||
@@ -0,0 +1,29 @@
|
||||
LineBreakpoint created at whenExpr.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
whenExpr.kt:5
|
||||
whenExpr.kt:6
|
||||
whenExpr.kt:7
|
||||
whenExpr.kt:10
|
||||
whenExpr.kt:14
|
||||
whenExpr.kt:17
|
||||
whenExpr.kt:19
|
||||
whenExpr.kt:20
|
||||
whenExpr.kt:21
|
||||
whenExpr.kt:24
|
||||
whenExpr.kt:28
|
||||
whenExpr.kt:31
|
||||
whenExpr.kt:33
|
||||
whenExpr.kt:34
|
||||
whenExpr.kt:35
|
||||
whenExpr.kt:38
|
||||
whenExpr.kt:39
|
||||
whenExpr.kt:45
|
||||
whenExpr.kt:47
|
||||
whenExpr.kt:48
|
||||
whenExpr.kt:49
|
||||
whenExpr.kt:50
|
||||
whenExpr.kt:59
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user