Move debugger test data to the new location
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
// Should stop on primary constructor invocation
|
||||
class Foo1(val a: Int) /// M
|
||||
|
||||
class Foo2( /// M
|
||||
val a: Int, /// F
|
||||
val b: String /// F
|
||||
)
|
||||
|
||||
class Foo3(val a: Int) { /// M
|
||||
constructor(a: String) : this(a.toInt()) /// M
|
||||
}
|
||||
|
||||
// Initializers are not currently recognized as functions
|
||||
class Foo4 { /// M
|
||||
init { /// L
|
||||
println() /// L
|
||||
} /// L
|
||||
}
|
||||
|
||||
class Foo5 {
|
||||
constructor(a: String) {} /// M
|
||||
constructor(a: Int) {} /// M
|
||||
}
|
||||
|
||||
interface Intf
|
||||
|
||||
annotation class Anno
|
||||
|
||||
enum class Enum1 { /// M
|
||||
FOO
|
||||
}
|
||||
|
||||
enum class Enum2(val a: Int) { /// M
|
||||
FOO(1)
|
||||
}
|
||||
|
||||
object Obj1
|
||||
|
||||
object Obj2 {}
|
||||
@@ -1,44 +0,0 @@
|
||||
// Simple one-liners should have only method breakpoint
|
||||
// Simple = no lambdas on a line
|
||||
fun foo1() = println() /// M
|
||||
|
||||
fun foo2() {} /// M
|
||||
|
||||
// Lambdas should be available if present
|
||||
fun foo3() = run { println() } /// *, L, M, λ
|
||||
|
||||
// Code blocks {} are not considered as expressions
|
||||
fun foo4() { /// M
|
||||
println() /// L
|
||||
} /// L
|
||||
|
||||
// And parenthesis as well
|
||||
fun foo5() = ( /// M
|
||||
println() /// L
|
||||
)
|
||||
|
||||
// For expression-body functions, a line breakpoint should be available
|
||||
// if there is an expression on the first line
|
||||
fun foo6() = when (2 + 3) { /// M, L
|
||||
5 -> {} /// L
|
||||
else -> {} /// L
|
||||
}
|
||||
|
||||
// Line breakpoint should not be displayed for lambda literal results
|
||||
fun foo7() = { println() } /// M, λ
|
||||
|
||||
fun foo8() = (3 + 5).run { /// M, L
|
||||
println() /// L
|
||||
} /// L
|
||||
|
||||
// Expressions in default parameter values should be recognized
|
||||
fun foo9(a: String = readLine()!!) = a /// M, L
|
||||
|
||||
// Lambdas in default parameter values also should be recognized
|
||||
fun foo10(a: () -> Unit = { println() }) { /// *, L, M, λ
|
||||
a() /// L
|
||||
} /// L
|
||||
|
||||
// If a default parameter value is not just a lambda, but a function call with a lambda argument,
|
||||
// there should be a line breakpoint as well
|
||||
fun foo11(a: String = run { "foo" }) = a /// *, L, M, λ
|
||||
@@ -1,53 +0,0 @@
|
||||
fun foo() {
|
||||
require(true) { "foo" } /// *, L, λ
|
||||
|
||||
require(true) { val a = 5 } /// *, L, λ
|
||||
|
||||
require(true) { /// L
|
||||
val a = 5 /// L
|
||||
} /// L
|
||||
|
||||
block { val a = 5 } /// *, L, λ
|
||||
|
||||
block { /// L
|
||||
val a = 5 /// L
|
||||
} /// L
|
||||
|
||||
inlineBlock { val a = 5} /// *, L, λ
|
||||
|
||||
inlineBlock { /// L
|
||||
val a = 5 /// L
|
||||
} /// L
|
||||
|
||||
inlineOnlyBlock { val a = 5 } /// *, L, λ
|
||||
|
||||
inlineOnlyBlock { /// L
|
||||
val a = 5 /// L
|
||||
} /// L
|
||||
|
||||
inlineOnlyBlock2 { val a = 5 } /// *, L, λ
|
||||
|
||||
inlineOnlyBlock2 { /// L
|
||||
val a = 5 /// L
|
||||
} /// L
|
||||
} /// L
|
||||
|
||||
private fun block(block: () -> Unit) { /// M
|
||||
block() /// L
|
||||
} /// L
|
||||
|
||||
private inline fun inlineBlock(block: () -> Unit) { /// M
|
||||
block() /// L
|
||||
} /// L
|
||||
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.InlineOnly
|
||||
private inline fun inlineOnlyBlock(block: () -> Unit) {
|
||||
block()
|
||||
}
|
||||
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.InlineOnly
|
||||
private inline fun inlineOnlyBlock2(noinline block: () -> Unit) {
|
||||
block()
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
fun foo1() {
|
||||
// We don't support function breakpoints for local functions yet
|
||||
fun local() { /// L
|
||||
println() /// L
|
||||
} /// L
|
||||
} /// L
|
||||
|
||||
fun foo2() { /// M
|
||||
val local = fun() { /// L
|
||||
println() /// L
|
||||
} /// L
|
||||
} /// L
|
||||
|
||||
fun foo3() { /// M
|
||||
val local = { /// L
|
||||
println() /// L
|
||||
} /// L
|
||||
} /// L
|
||||
|
||||
fun foo4() { /// M
|
||||
fun local(block: () -> Unit = { println() }) {} /// *, L, λ
|
||||
} /// L
|
||||
@@ -1,9 +0,0 @@
|
||||
class Foo1 {
|
||||
val x: String /// F, L
|
||||
get() = "foo" /// M
|
||||
}
|
||||
|
||||
class Foo2 { /// M
|
||||
val x: String = "foo" /// F, L
|
||||
get() = field + "x" /// M
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package simple
|
||||
|
||||
fun main() { /// M
|
||||
val a = 5 /// L
|
||||
foo(a) /// L
|
||||
} /// L
|
||||
|
||||
fun foo(a: Int) { /// M
|
||||
val b = 6 /// L
|
||||
} /// L
|
||||
@@ -1,22 +0,0 @@
|
||||
//FILE: a/a.kt
|
||||
// DISABLE_STRICT_MODE
|
||||
package a
|
||||
|
||||
abstract class R {
|
||||
abstract fun run()
|
||||
}
|
||||
|
||||
fun eval(r: R) {
|
||||
r.run()
|
||||
}
|
||||
|
||||
class Some {
|
||||
fun foo() {
|
||||
eval(object : R() { // Line with negative score
|
||||
override fun run() {
|
||||
val a = 1 // R: 4 L: 17
|
||||
val b = 12 // R: 4 L: 18
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
// DO_NOT_CHECK_CLASS_FQNAME
|
||||
|
||||
//FILE: a/a.kt
|
||||
package a
|
||||
|
||||
class A private constructor() {
|
||||
protected fun a() {
|
||||
val a = 5
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
|
||||
//significant whitespace
|
||||
package b
|
||||
|
||||
class A public constructor() {
|
||||
private fun a() {
|
||||
val a = 5
|
||||
}
|
||||
}
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
//FILE: a/a.kt
|
||||
class A {
|
||||
init {
|
||||
val a = 5
|
||||
val b = 3
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
class B {
|
||||
init {
|
||||
val x = 1
|
||||
}
|
||||
}
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
// DO_NOT_CHECK_CLASS_FQNAME
|
||||
// DISABLE_STRICT_MODE
|
||||
|
||||
//FILE: a/a.kt
|
||||
package a
|
||||
|
||||
fun block(l: () -> Unit) {}
|
||||
|
||||
class A { // Line with the same rank
|
||||
fun a() {
|
||||
block {
|
||||
val a = 5
|
||||
block {
|
||||
val b = 4
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
package b
|
||||
// Fake Line
|
||||
|
||||
import a.block
|
||||
|
||||
class A {
|
||||
fun b() {
|
||||
val g = 5 // Line with the same rank
|
||||
val x = 1
|
||||
block { val y = 2 }
|
||||
block {
|
||||
val a = 5
|
||||
block { block { val x = 4 }}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
//FILE: a/a.kt
|
||||
class A(
|
||||
val firstName: String,
|
||||
val lastName: String,
|
||||
val age: Int
|
||||
)
|
||||
|
||||
//FILE: b/a.kt
|
||||
class B(
|
||||
val firstName: String,
|
||||
val lastName: String,
|
||||
val age: Int
|
||||
)
|
||||
@@ -1,21 +0,0 @@
|
||||
//FILE: a/a.kt
|
||||
class A(
|
||||
val firstName: String,
|
||||
val lastName: String,
|
||||
val age: Int
|
||||
) {
|
||||
val c = 1
|
||||
val d = "A"
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
class B(
|
||||
val firstName: String,
|
||||
val lastName: String,
|
||||
val age: Int
|
||||
) {
|
||||
init {
|
||||
val a = 5
|
||||
val b = 6
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
//FILE: a/a.kt
|
||||
package a
|
||||
|
||||
import c.*
|
||||
|
||||
class B : A<SomeImpl>() {
|
||||
override fun x(some: SomeImpl) {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
// DO_NOT_LOAD: a.SomeImpl
|
||||
class SomeImpl : Some()
|
||||
|
||||
//FILE: b/a.kt
|
||||
package b
|
||||
|
||||
import c.*
|
||||
|
||||
class B : A<Some>() {
|
||||
override fun x(some: Some) {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: c/c.kt
|
||||
package c
|
||||
|
||||
open class Some
|
||||
|
||||
abstract class A<T: Some> {
|
||||
abstract fun x(a: T)
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
@@ -1,21 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
//FILE: a/a.kt
|
||||
package foo
|
||||
|
||||
class A {
|
||||
val a by lazy {
|
||||
val a = 5
|
||||
val b = 2
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
package bar
|
||||
|
||||
class B {
|
||||
val a by lazy {
|
||||
val b = 0
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
//FILE: a/a.kt
|
||||
package foo
|
||||
|
||||
class A {
|
||||
fun a() {
|
||||
val a = 5
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
package bar
|
||||
|
||||
class A {
|
||||
fun a() {
|
||||
val c = 1
|
||||
val d = 3
|
||||
val g = ""
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
//FILE: a/a.kt
|
||||
package bar
|
||||
|
||||
class A {
|
||||
fun a() {
|
||||
val a = 5
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
package foo
|
||||
|
||||
class A {
|
||||
fun b() {
|
||||
val c = 1
|
||||
val d = 3
|
||||
val g = ""
|
||||
}
|
||||
}
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
//FILE: a/a.kt
|
||||
class A {
|
||||
fun a() {
|
||||
System.out.println("a")
|
||||
}
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
class B {
|
||||
fun b() {
|
||||
System.out.println("b")
|
||||
}
|
||||
}
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
//FILE: a/a.kt
|
||||
package a
|
||||
|
||||
val a = run {
|
||||
val a = 5
|
||||
val b = run {
|
||||
val c = 2
|
||||
}
|
||||
5
|
||||
}
|
||||
|
||||
fun x() {
|
||||
println("")
|
||||
}
|
||||
|
||||
//FILE: b/a.kt
|
||||
package b
|
||||
|
||||
val b = 5
|
||||
|
||||
fun y() {
|
||||
println("")
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
@file:JvmName("ABC")
|
||||
package a
|
||||
|
||||
fun foo() {
|
||||
"" // a.ABC
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun foo() {
|
||||
"" // _DefaultPackageKt
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
class A {
|
||||
fun foo() {
|
||||
{
|
||||
"" // A\$foo\$1
|
||||
}()
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package insertInBlock
|
||||
|
||||
fun foo() {
|
||||
val lambda = {
|
||||
val a = 1 // insertInBlock.AnonymousNamedFunctionKt\$foo\$lambda\$1
|
||||
}()
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
class A {
|
||||
val x = go() // A
|
||||
|
||||
fun go() = 4 // A
|
||||
|
||||
fun foo() {
|
||||
"" // A
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
class A {
|
||||
companion object {
|
||||
|
||||
init {
|
||||
1 + 1 // A
|
||||
val a = 1 // A
|
||||
fun foo() {
|
||||
1 // A\$Companion\$1
|
||||
}
|
||||
}
|
||||
|
||||
val prop = 1 // A
|
||||
|
||||
val prop2: Int
|
||||
get() {
|
||||
val a = 1 + 1 // A\$Companion
|
||||
return 1 // A\$Companion
|
||||
}
|
||||
|
||||
val prop3: Int
|
||||
get() = 1 // A\$Companion
|
||||
|
||||
fun foo() = 1 // A\$Companion
|
||||
|
||||
fun foo2() {
|
||||
"" // A\$Companion
|
||||
|
||||
val o = object {
|
||||
val p = 1 // A\$Companion\$foo2\$o\$1
|
||||
val p2: Int
|
||||
get() {
|
||||
return 1 // A\$Companion\$foo2\$o\$1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface T {
|
||||
companion object {
|
||||
val prop = 1 // T\$Companion
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
enum class E {
|
||||
;
|
||||
fun foo() {
|
||||
"" // E
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package a
|
||||
|
||||
class A {
|
||||
}
|
||||
|
||||
fun A.foo() {
|
||||
"" // a.ExtensionFunctionKt
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
class A {
|
||||
fun foo() {
|
||||
{
|
||||
fun innerFoo() {
|
||||
"" // A\$foo\$1\$1
|
||||
}
|
||||
innerFoo()
|
||||
}()
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
class A {
|
||||
fun foo() {
|
||||
val a = {
|
||||
fun innerFoo() {
|
||||
val b = 1 // A\$foo\$a\$1\$1
|
||||
}
|
||||
innerFoo()
|
||||
}()
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
class A {
|
||||
class B {
|
||||
fun foo() {
|
||||
"" // A\$B
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package test
|
||||
|
||||
fun foo(): String {
|
||||
fun bar(): String {
|
||||
return "" // test.LocalFunctionKt\$foo\$1
|
||||
}
|
||||
return bar()
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
"" // test/AKt
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun bar() {
|
||||
foo(); // test/BKt
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
"" // test/A1Kt
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun bar() {
|
||||
"" // test/A2Kt
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun baz() {
|
||||
"" // test/A3Kt
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun quux() {
|
||||
"" // test/A4Kt
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
object Obj {
|
||||
val x = foo() // Obj
|
||||
|
||||
fun foo(): Int {
|
||||
return 0 // Obj
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
class A {
|
||||
fun foo() {
|
||||
object {
|
||||
fun bar() {
|
||||
"" // A\$foo\$1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
"" // test.PackageKt
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
class A {
|
||||
val foo: Int
|
||||
get() = 5 // A
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
class A {
|
||||
val foo: Int = 5 // A
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
package prop
|
||||
|
||||
val foo: Int = 5 // prop.TopLevelPropertyInitializerKt
|
||||
@@ -1,5 +0,0 @@
|
||||
interface A {
|
||||
fun foo() {
|
||||
"" // A\$DefaultImpls
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package test
|
||||
|
||||
class A { fun f() {} } // test.A
|
||||
class B { fun g() {} } // test.B
|
||||
@@ -1,5 +0,0 @@
|
||||
<caret>Ann fun foo() { }
|
||||
|
||||
annotation class Ann
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,5 +0,0 @@
|
||||
fun foo(arr: Array<String>) {
|
||||
a<caret>rr[0]
|
||||
}
|
||||
|
||||
// EXPECTED: arr
|
||||
@@ -1,5 +0,0 @@
|
||||
fun foo() {
|
||||
1 <caret>+ 1
|
||||
}
|
||||
|
||||
// EXPECTED: 1 + 1
|
||||
@@ -1,7 +0,0 @@
|
||||
fun foo() {
|
||||
<caret>bar()
|
||||
}
|
||||
|
||||
fun bar() = 1
|
||||
|
||||
// EXPECTED: bar()
|
||||
@@ -1,10 +0,0 @@
|
||||
fun foo(i: Int) {
|
||||
<caret>O.foo()
|
||||
}
|
||||
|
||||
class O {
|
||||
companion object {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
// EXPECTED: null
|
||||
@@ -1,10 +0,0 @@
|
||||
fun foo(i: Int) {
|
||||
O.<caret>Companion.foo()
|
||||
}
|
||||
|
||||
class O {
|
||||
companion object {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
// EXPECTED: O.Companion
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
fun foo() {
|
||||
1 <caret>+ 1
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,7 +0,0 @@
|
||||
fun foo() {
|
||||
<caret>bar()
|
||||
}
|
||||
|
||||
fun bar() = 1
|
||||
|
||||
// EXPECTED: null
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
val a = 1
|
||||
val b = <caret>a
|
||||
|
||||
// EXPECTED: a
|
||||
@@ -1,7 +0,0 @@
|
||||
fun foo() {
|
||||
1.<caret>foo()
|
||||
}
|
||||
|
||||
fun Int.foo() = 1
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,8 +0,0 @@
|
||||
fun foo() {
|
||||
val a = 1
|
||||
bar(<caret>a)
|
||||
}
|
||||
|
||||
fun bar(i: Int) = 1
|
||||
|
||||
// EXPECTED: a
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
fun foo() {
|
||||
<caret>bar { }
|
||||
}
|
||||
|
||||
fun bar(f: () -> Unit) = 1
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,10 +0,0 @@
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
klass<caret>[1]
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
fun get(i: Int): Int = 1
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,7 +0,0 @@
|
||||
fun foo() {
|
||||
1 <caret>foo 1
|
||||
}
|
||||
|
||||
fun Int.foo(i: Int) = 1
|
||||
|
||||
// EXPECTED: null
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
fun foo() {
|
||||
val a = 1
|
||||
<caret>a foo 1
|
||||
}
|
||||
|
||||
fun Int.foo(i: Int) = 1
|
||||
|
||||
// EXPECTED: a
|
||||
@@ -1,5 +0,0 @@
|
||||
fun foo() {
|
||||
1 <caret>is Int
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,6 +0,0 @@
|
||||
val a = 1
|
||||
fun foo() {
|
||||
<caret>a
|
||||
}
|
||||
|
||||
// EXPECTED: a
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
klass.<caret>bar
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
val bar = 1
|
||||
}
|
||||
|
||||
// EXPECTED: klass.bar
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
<caret>klass.bar()
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
// EXPECTED: klass
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
klass.<caret>bar()
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,11 +0,0 @@
|
||||
class Derived: Base() {
|
||||
fun test() {
|
||||
<caret>super.test()
|
||||
}
|
||||
}
|
||||
|
||||
open class Base {
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,11 +0,0 @@
|
||||
class Derived: Base() {
|
||||
fun test() {
|
||||
super.<caret>test()
|
||||
}
|
||||
}
|
||||
|
||||
open class Base {
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,7 +0,0 @@
|
||||
class MyClass {
|
||||
fun test() {
|
||||
<caret>this.test()
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this
|
||||
@@ -1,7 +0,0 @@
|
||||
class MyClass {
|
||||
fun test() {
|
||||
<caret>this.test()
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this
|
||||
@@ -1,7 +0,0 @@
|
||||
class MyClass {
|
||||
fun Int.test() {
|
||||
<caret>this@MyClass
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this@MyClass
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
fun foo() {
|
||||
<caret>+1
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,4 +0,0 @@
|
||||
val a = 1
|
||||
val b = <caret>a
|
||||
|
||||
// EXPECTED: a
|
||||
@@ -1,7 +0,0 @@
|
||||
fun foo() {
|
||||
1.<caret>foo()
|
||||
}
|
||||
|
||||
fun Int.foo() = 1
|
||||
|
||||
// EXPECTED: 1.foo()
|
||||
@@ -1,9 +0,0 @@
|
||||
fun one() = "one"
|
||||
fun String.two() = this + "two"
|
||||
fun String.three() = this + "three"
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val s = <caret>one().two().three() // Can't select 'one()' with Alt in debugger, only 'one().two()' and 'one().two().three()' are available
|
||||
}
|
||||
|
||||
// EXPECTED: one()
|
||||
@@ -1,12 +0,0 @@
|
||||
package a
|
||||
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
<caret>a.MyClass()
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
val bar = 1
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,8 +0,0 @@
|
||||
fun foo() {
|
||||
val a = 1
|
||||
bar(<caret>a)
|
||||
}
|
||||
|
||||
fun bar(i: Int) = 1
|
||||
|
||||
// EXPECTED: a
|
||||
@@ -1,7 +0,0 @@
|
||||
fun foo() {
|
||||
<caret>bar { }
|
||||
}
|
||||
|
||||
fun bar(f: () -> Unit) = 1
|
||||
|
||||
// EXPECTED: bar { }
|
||||
@@ -1,10 +0,0 @@
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
klass<caret>[1]
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
fun get(i: Int): Int = 1
|
||||
}
|
||||
|
||||
// EXPECTED: klass[1]
|
||||
@@ -1,3 +0,0 @@
|
||||
import java.<caret>util.List
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,7 +0,0 @@
|
||||
fun foo() {
|
||||
1 <caret>foo 1
|
||||
}
|
||||
|
||||
fun Int.foo(i: Int) = 1
|
||||
|
||||
// EXPECTED: 1 foo 1
|
||||
@@ -1,8 +0,0 @@
|
||||
fun foo() {
|
||||
val a = 1
|
||||
<caret>a foo 1
|
||||
}
|
||||
|
||||
fun Int.foo(i: Int) = 1
|
||||
|
||||
// EXPECTED: a
|
||||
@@ -1,5 +0,0 @@
|
||||
fun foo() {
|
||||
1 <caret>is Int
|
||||
}
|
||||
|
||||
// EXPECTED: 1 is Int
|
||||
@@ -1,5 +0,0 @@
|
||||
fun foo(i: Int) {
|
||||
<caret>Integer.valueOf(1)
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,3 +0,0 @@
|
||||
<caret>val a = 1
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,3 +0,0 @@
|
||||
<caret>public fun foo() = 1
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,5 +0,0 @@
|
||||
fun foo(i: Int) {
|
||||
foo(<caret>i = 1)
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,8 +0,0 @@
|
||||
fun foo(i: Int) {
|
||||
<caret>O.foo()
|
||||
}
|
||||
|
||||
object O {
|
||||
fun foo() {}
|
||||
}
|
||||
// EXPECTED: O
|
||||
@@ -1,3 +0,0 @@
|
||||
package foo.<caret>util
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -1,5 +0,0 @@
|
||||
fun foo(i: Int) {
|
||||
<caret>i
|
||||
}
|
||||
|
||||
// EXPECTED: i
|
||||
@@ -1,6 +0,0 @@
|
||||
val a = 1
|
||||
fun foo() {
|
||||
<caret>a
|
||||
}
|
||||
|
||||
// EXPECTED: a
|
||||
@@ -1,3 +0,0 @@
|
||||
val <caret>a = 1
|
||||
|
||||
// EXPECTED: a
|
||||
@@ -1,10 +0,0 @@
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
klass.<caret>bar
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
val bar = 1
|
||||
}
|
||||
|
||||
// EXPECTED: klass.bar
|
||||
@@ -1,10 +0,0 @@
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
<caret>klass.bar()
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
// EXPECTED: klass
|
||||
@@ -1,10 +0,0 @@
|
||||
fun foo() {
|
||||
val klass = MyClass()
|
||||
klass.<caret>bar()
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
fun bar() = 1
|
||||
}
|
||||
|
||||
// EXPECTED: klass.bar()
|
||||
@@ -1,11 +0,0 @@
|
||||
class Derived: Base() {
|
||||
fun test() {
|
||||
<caret>super.test()
|
||||
}
|
||||
}
|
||||
|
||||
open class Base {
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
// EXPECTED: super.test()
|
||||
@@ -1,11 +0,0 @@
|
||||
class Derived: Base() {
|
||||
fun test() {
|
||||
super.<caret>test()
|
||||
}
|
||||
}
|
||||
|
||||
open class Base {
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
// EXPECTED: super.test()
|
||||
@@ -1,7 +0,0 @@
|
||||
class MyClass {
|
||||
fun test() {
|
||||
<caret>this.test()
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this
|
||||
@@ -1,7 +0,0 @@
|
||||
class MyClass {
|
||||
fun test() {
|
||||
this.<caret>test()
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this.test()
|
||||
@@ -1,7 +0,0 @@
|
||||
class MyClass {
|
||||
fun Int.test() {
|
||||
<caret>this@MyClass
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this@MyClass
|
||||
@@ -1,5 +0,0 @@
|
||||
fun foo() {
|
||||
<caret>+1
|
||||
}
|
||||
|
||||
// EXPECTED: +1
|
||||
@@ -1,3 +0,0 @@
|
||||
fun foo(): <caret>Int { }
|
||||
|
||||
// EXPECTED: null
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user