Added test data for future use

This commit is contained in:
Valentin Kipyatkov
2014-04-30 21:27:23 +04:00
parent 1b034c5fc3
commit a65bd1a74d
5 changed files with 34 additions and 0 deletions
@@ -0,0 +1,7 @@
class Foo {
fun get(s: String): String = ""
}
fun f(foo: Foo, s: String) = foo[s]<caret>
// ELEMENT: s
@@ -0,0 +1,7 @@
class Foo {
fun get(s: String): String = ""
}
fun f(foo: Foo, s: String) = foo[<caret>]
// ELEMENT: s
@@ -0,0 +1,7 @@
class Foo {
fun get(s: String, i: Int): String = ""
}
fun f(foo: Foo, s: String) = foo[s, <caret>]
// ELEMENT: s
@@ -0,0 +1,7 @@
class Foo {
fun get(s: String, i: Int): String = ""
}
fun f(foo: Foo, s: String) = foo[<caret>]
// ELEMENT: s
@@ -0,0 +1,6 @@
fun foo(list: List<String>, i: Int) {
list[<caret>]
}
// EXIST: i
// ABSENT: list