diff --git a/idea/testData/completion/handlers/smart/IndexingOperator1.kt.after b/idea/testData/completion/handlers/smart/IndexingOperator1.kt.after new file mode 100644 index 00000000000..9a6a47412e0 --- /dev/null +++ b/idea/testData/completion/handlers/smart/IndexingOperator1.kt.after @@ -0,0 +1,7 @@ +class Foo { + fun get(s: String): String = "" +} + +fun f(foo: Foo, s: String) = foo[s] + +// ELEMENT: s diff --git a/idea/testData/completion/handlers/smart/IndexingOperator1.kt.todo b/idea/testData/completion/handlers/smart/IndexingOperator1.kt.todo new file mode 100644 index 00000000000..e39dcb3049a --- /dev/null +++ b/idea/testData/completion/handlers/smart/IndexingOperator1.kt.todo @@ -0,0 +1,7 @@ +class Foo { + fun get(s: String): String = "" +} + +fun f(foo: Foo, s: String) = foo[] + +// ELEMENT: s diff --git a/idea/testData/completion/handlers/smart/IndexingOperator2.kt.after b/idea/testData/completion/handlers/smart/IndexingOperator2.kt.after new file mode 100644 index 00000000000..9de419ee41a --- /dev/null +++ b/idea/testData/completion/handlers/smart/IndexingOperator2.kt.after @@ -0,0 +1,7 @@ +class Foo { + fun get(s: String, i: Int): String = "" +} + +fun f(foo: Foo, s: String) = foo[s, ] + +// ELEMENT: s diff --git a/idea/testData/completion/handlers/smart/IndexingOperator2.kt.todo b/idea/testData/completion/handlers/smart/IndexingOperator2.kt.todo new file mode 100644 index 00000000000..99198b2b3d5 --- /dev/null +++ b/idea/testData/completion/handlers/smart/IndexingOperator2.kt.todo @@ -0,0 +1,7 @@ +class Foo { + fun get(s: String, i: Int): String = "" +} + +fun f(foo: Foo, s: String) = foo[] + +// ELEMENT: s diff --git a/idea/testData/completion/smart/IndexingOperator.kt.todo b/idea/testData/completion/smart/IndexingOperator.kt.todo new file mode 100644 index 00000000000..833b27e2b46 --- /dev/null +++ b/idea/testData/completion/smart/IndexingOperator.kt.todo @@ -0,0 +1,6 @@ +fun foo(list: List, i: Int) { + list[] +} + +// EXIST: i +// ABSENT: list