Move debugger test data to the new location

This commit is contained in:
Yan Zhulanow
2019-09-27 00:13:53 +09:00
parent b4cc5703de
commit d8d81c51d7
1423 changed files with 0 additions and 0 deletions
@@ -0,0 +1,5 @@
<caret>Ann fun foo() { }
annotation class Ann
// EXPECTED: null
@@ -0,0 +1,5 @@
fun foo(arr: Array<String>) {
a<caret>rr[0]
}
// EXPECTED: arr
@@ -0,0 +1,5 @@
fun foo() {
1 <caret>+ 1
}
// EXPECTED: 1 + 1
@@ -0,0 +1,7 @@
fun foo() {
<caret>bar()
}
fun bar() = 1
// EXPECTED: bar()
@@ -0,0 +1,10 @@
fun foo(i: Int) {
<caret>O.foo()
}
class O {
companion object {
fun foo() {}
}
}
// EXPECTED: null
@@ -0,0 +1,10 @@
fun foo(i: Int) {
O.<caret>Companion.foo()
}
class O {
companion object {
fun foo() {}
}
}
// EXPECTED: O.Companion
@@ -0,0 +1,5 @@
fun foo() {
1 <caret>+ 1
}
// EXPECTED: null
@@ -0,0 +1,7 @@
fun foo() {
<caret>bar()
}
fun bar() = 1
// EXPECTED: null
@@ -0,0 +1,4 @@
val a = 1
val b = <caret>a
// EXPECTED: a
@@ -0,0 +1,7 @@
fun foo() {
1.<caret>foo()
}
fun Int.foo() = 1
// EXPECTED: null
@@ -0,0 +1,8 @@
fun foo() {
val a = 1
bar(<caret>a)
}
fun bar(i: Int) = 1
// EXPECTED: a
@@ -0,0 +1,7 @@
fun foo() {
<caret>bar { }
}
fun bar(f: () -> Unit) = 1
// EXPECTED: null
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass<caret>[1]
}
class MyClass {
fun get(i: Int): Int = 1
}
// EXPECTED: null
@@ -0,0 +1,7 @@
fun foo() {
1 <caret>foo 1
}
fun Int.foo(i: Int) = 1
// EXPECTED: null
@@ -0,0 +1,8 @@
fun foo() {
val a = 1
<caret>a foo 1
}
fun Int.foo(i: Int) = 1
// EXPECTED: a
@@ -0,0 +1,5 @@
fun foo() {
1 <caret>is Int
}
// EXPECTED: null
@@ -0,0 +1,6 @@
val a = 1
fun foo() {
<caret>a
}
// EXPECTED: a
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass.<caret>bar
}
class MyClass {
val bar = 1
}
// EXPECTED: klass.bar
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
<caret>klass.bar()
}
class MyClass {
fun bar() = 1
}
// EXPECTED: klass
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass.<caret>bar()
}
class MyClass {
fun bar() = 1
}
// EXPECTED: null
@@ -0,0 +1,11 @@
class Derived: Base() {
fun test() {
<caret>super.test()
}
}
open class Base {
fun test() {}
}
// EXPECTED: null
@@ -0,0 +1,11 @@
class Derived: Base() {
fun test() {
super.<caret>test()
}
}
open class Base {
fun test() {}
}
// EXPECTED: null
@@ -0,0 +1,7 @@
class MyClass {
fun test() {
<caret>this.test()
}
}
// EXPECTED: this
@@ -0,0 +1,7 @@
class MyClass {
fun test() {
<caret>this.test()
}
}
// EXPECTED: this
@@ -0,0 +1,7 @@
class MyClass {
fun Int.test() {
<caret>this@MyClass
}
}
// EXPECTED: this@MyClass
@@ -0,0 +1,5 @@
fun foo() {
<caret>+1
}
// EXPECTED: null
@@ -0,0 +1,4 @@
val a = 1
val b = <caret>a
// EXPECTED: a
@@ -0,0 +1,7 @@
fun foo() {
1.<caret>foo()
}
fun Int.foo() = 1
// EXPECTED: 1.foo()
@@ -0,0 +1,9 @@
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()
@@ -0,0 +1,12 @@
package a
fun foo() {
val klass = MyClass()
<caret>a.MyClass()
}
class MyClass {
val bar = 1
}
// EXPECTED: null
@@ -0,0 +1,8 @@
fun foo() {
val a = 1
bar(<caret>a)
}
fun bar(i: Int) = 1
// EXPECTED: a
@@ -0,0 +1,7 @@
fun foo() {
<caret>bar { }
}
fun bar(f: () -> Unit) = 1
// EXPECTED: bar { }
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass<caret>[1]
}
class MyClass {
fun get(i: Int): Int = 1
}
// EXPECTED: klass[1]
@@ -0,0 +1,3 @@
import java.<caret>util.List
// EXPECTED: null
@@ -0,0 +1,7 @@
fun foo() {
1 <caret>foo 1
}
fun Int.foo(i: Int) = 1
// EXPECTED: 1 foo 1
@@ -0,0 +1,8 @@
fun foo() {
val a = 1
<caret>a foo 1
}
fun Int.foo(i: Int) = 1
// EXPECTED: a
@@ -0,0 +1,5 @@
fun foo() {
1 <caret>is Int
}
// EXPECTED: 1 is Int
@@ -0,0 +1,5 @@
fun foo(i: Int) {
<caret>Integer.valueOf(1)
}
// EXPECTED: null
@@ -0,0 +1,3 @@
<caret>val a = 1
// EXPECTED: null
@@ -0,0 +1,3 @@
<caret>public fun foo() = 1
// EXPECTED: null
@@ -0,0 +1,5 @@
fun foo(i: Int) {
foo(<caret>i = 1)
}
// EXPECTED: null
@@ -0,0 +1,8 @@
fun foo(i: Int) {
<caret>O.foo()
}
object O {
fun foo() {}
}
// EXPECTED: O
@@ -0,0 +1,3 @@
package foo.<caret>util
// EXPECTED: null
@@ -0,0 +1,5 @@
fun foo(i: Int) {
<caret>i
}
// EXPECTED: i
@@ -0,0 +1,6 @@
val a = 1
fun foo() {
<caret>a
}
// EXPECTED: a
@@ -0,0 +1,3 @@
val <caret>a = 1
// EXPECTED: a
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass.<caret>bar
}
class MyClass {
val bar = 1
}
// EXPECTED: klass.bar
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
<caret>klass.bar()
}
class MyClass {
fun bar() = 1
}
// EXPECTED: klass
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass.<caret>bar()
}
class MyClass {
fun bar() = 1
}
// EXPECTED: klass.bar()
@@ -0,0 +1,11 @@
class Derived: Base() {
fun test() {
<caret>super.test()
}
}
open class Base {
fun test() {}
}
// EXPECTED: super.test()
@@ -0,0 +1,11 @@
class Derived: Base() {
fun test() {
super.<caret>test()
}
}
open class Base {
fun test() {}
}
// EXPECTED: super.test()
@@ -0,0 +1,7 @@
class MyClass {
fun test() {
<caret>this.test()
}
}
// EXPECTED: this
@@ -0,0 +1,7 @@
class MyClass {
fun test() {
this.<caret>test()
}
}
// EXPECTED: this.test()
@@ -0,0 +1,7 @@
class MyClass {
fun Int.test() {
<caret>this@MyClass
}
}
// EXPECTED: this@MyClass
@@ -0,0 +1,5 @@
fun foo() {
<caret>+1
}
// EXPECTED: +1
@@ -0,0 +1,3 @@
fun foo(): <caret>Int { }
// EXPECTED: null
@@ -0,0 +1,3 @@
fun foo(): List<<caret>Int> { }
// EXPECTED: null
@@ -0,0 +1,3 @@
fun foo(): java<caret>.lang.Integer { }
// EXPECTED: null