#KT-10883 Fixed
This commit is contained in:
committed by
Dmitry Jemerov
parent
348125acb3
commit
e8b665f600
+1
-1
@@ -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]
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
}]
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,5 +4,5 @@ fun test() {
|
||||
operator fun Test.get(i: Int) : Int = 0
|
||||
|
||||
val test = Test()
|
||||
test[0]
|
||||
test<caret>[0]
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ fun test() {
|
||||
operator fun get(fn: (i: Int) -> Int) : Int = 0
|
||||
}
|
||||
val test = Test()
|
||||
test[{ i ->
|
||||
test<caret>[{ i ->
|
||||
i
|
||||
}]
|
||||
}
|
||||
|
||||
+1
-1
@@ -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]
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,5 +5,5 @@ fun test() {
|
||||
operator fun get(i: Int) : Int = 0
|
||||
}
|
||||
val test = Test()
|
||||
test[0]
|
||||
test<caret>[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user