#KT-10883 Fixed

This commit is contained in:
Anton Sukhonosenko
2016-03-19 19:26:09 +03:00
committed by Dmitry Jemerov
parent 348125acb3
commit e8b665f600
10 changed files with 29 additions and 10 deletions
@@ -3,5 +3,5 @@ fun test() {
operator fun get(a: Int, vararg b: Int, c: Int = 0) : Int = 0
}
val test = Test()
test[1, 3, 4, 5]
test<caret>[1, 3, 4, 5]
}
@@ -3,7 +3,7 @@ fun test() {
operator fun get(a: Int, b: Int, fn: (i: Int) -> Int) : Int = 0
}
val test = Test()
test[1, 2, { i ->
test<caret>[1, 2, { i ->
i
}]
}
@@ -4,5 +4,5 @@ fun test() {
operator fun Test.get(i: Int) : Int = 0
val test = Test()
test[0]
test<caret>[0]
}
@@ -3,7 +3,7 @@ fun test() {
operator fun get(fn: (i: Int) -> Int) : Int = 0
}
val test = Test()
test[{ i ->
test<caret>[{ i ->
i
}]
}
@@ -3,5 +3,5 @@ fun test() {
operator fun get(a: Int, b: Int) : Int = 0
}
val test = Test()
test[1, 2]
test<caret>[1, 2]
}
@@ -5,5 +5,5 @@ class C {
}
fun foo() {
C["x"]
C<caret>["x"]
}
@@ -5,5 +5,5 @@ class C {
}
fun foo() {
C()["x"] = 1
C()<caret>["x"] = 1
}
@@ -6,6 +6,6 @@ class C {
class D(val c: C) {
fun foo() {
this.c["x", 2] = 1
this.c<caret>["x", 2] = 1
}
}
@@ -5,5 +5,5 @@ fun test() {
operator fun get(i: Int) : Int = 0
}
val test = Test()
test[0]
test<caret>[0]
}