SmartStepInto: render kotlin functions properly
This commit is contained in:
+1
-1
@@ -7,4 +7,4 @@ class A {
|
||||
fun get(i: Int) = 1
|
||||
}
|
||||
|
||||
// EXISTS: get(int)
|
||||
// EXISTS: get(Int)
|
||||
@@ -8,4 +8,4 @@ class Delegate {
|
||||
fun get(t: Any?, p: PropertyMetadata) = 1
|
||||
}
|
||||
|
||||
// EXISTS: a.get(Object\, PropertyMetadata)
|
||||
// EXISTS: a.get(Any?\, PropertyMetadata)
|
||||
@@ -9,4 +9,4 @@ class A {
|
||||
|
||||
fun f2(i: Int) {}
|
||||
|
||||
// EXISTS: f1(), f2(int)
|
||||
// EXISTS: f1(), f2(Int)
|
||||
+1
-1
@@ -7,4 +7,4 @@ fun foo() {
|
||||
fun f1(f: () -> Unit) {}
|
||||
fun f2() {}
|
||||
|
||||
// EXISTS: f1(Function0<? extends Unit>), f1: f.invoke()
|
||||
// EXISTS: f1(() -> Unit), f1: f.invoke()
|
||||
+1
-1
@@ -9,4 +9,4 @@ class A {
|
||||
|
||||
fun f2(i: Int) {}
|
||||
|
||||
// EXISTS: f1(int), f2(int)
|
||||
// EXISTS: f1(Int), f2(Int)
|
||||
@@ -4,4 +4,4 @@ fun foo() {
|
||||
|
||||
inline fun f1(f: () -> Unit) {}
|
||||
|
||||
// EXISTS: f1(Function0<? extends Unit>)
|
||||
// EXISTS: f1(() -> Unit)
|
||||
+1
-1
@@ -9,4 +9,4 @@ fun f1(vararg i: Int) {}
|
||||
fun f2() = 1
|
||||
fun f3() = 1
|
||||
|
||||
// EXISTS: f1(int...), f2(), f3()
|
||||
// EXISTS: f1(vararg Int), f2(), f3()
|
||||
+1
-1
@@ -5,4 +5,4 @@ fun foo() {
|
||||
fun f1(i: Int) = 1
|
||||
fun f2() {}
|
||||
|
||||
// EXISTS: f1(int), f2()
|
||||
// EXISTS: f1(Int), f2()
|
||||
+1
-1
@@ -15,4 +15,4 @@ val d: Int
|
||||
return 1
|
||||
}
|
||||
|
||||
// EXISTS: getC(), getD()
|
||||
// EXISTS: getter for c: Int, getter for d: Int
|
||||
@@ -0,0 +1,28 @@
|
||||
fun test() {
|
||||
<caret>propFoo + foo() + fooWithParam(1.extFoo()) { 2 } + FooClass(1).test() + FooClass().test() + FooClass(1, 2).test()
|
||||
}
|
||||
|
||||
class FooClass(i: Int) {
|
||||
constructor() : this(1)
|
||||
constructor(i: Int, s: Int) : this(1)
|
||||
|
||||
fun test() = 1
|
||||
}
|
||||
|
||||
fun foo() = 1
|
||||
fun fooWithParam(i: Int, f: () -> Int) = 1
|
||||
fun Int.extFoo() = 1
|
||||
|
||||
val propFoo: Int
|
||||
get() {
|
||||
return 1
|
||||
}
|
||||
|
||||
// EXISTS: getter for propFoo: Int,
|
||||
// EXISTS: foo()
|
||||
// EXISTS: fooWithParam(Int\, () -> Int)
|
||||
// EXISTS: extFoo()
|
||||
// EXISTS: fooWithParam: f.invoke()
|
||||
// EXISTS: test()
|
||||
// EXISTS: constructor FooClass()
|
||||
// EXISTS: constructor FooClass(Int\, Int)
|
||||
Reference in New Issue
Block a user