Create from Usage: Support array access expressions/binary expressions with type mismatch errors

#KT-14501 Fixed
This commit is contained in:
Alexey Sedunov
2016-11-02 15:34:20 +03:00
parent 0159ddbc49
commit e8b5387384
12 changed files with 134 additions and 12 deletions
@@ -0,0 +1,10 @@
// "Create extension function 'A.set'" "true"
class A
fun A.set(i: Int, j: Int) {
}
fun test() {
A()[<caret>"1"] = 2
}
@@ -0,0 +1,14 @@
// "Create extension function 'A.set'" "true"
class A
fun A.set(i: Int, j: Int) {
}
fun test() {
A()["1"] = 2
}
private operator fun A.set(s: String, value: Int) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}