[FE 1.0] Don't miss NO_SET_METHOD checks

^KT-28109 Fixed
This commit is contained in:
Victor Petukhov
2022-02-22 16:44:02 +03:00
committed by teamcity
parent 3aabc8d666
commit 8c1fcddea3
7 changed files with 60 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
// WITH_STDLIB
class Cell {
operator fun get(s: Int) = 1
}
fun box(): String {
val c = Cell()
(c<!NO_SET_METHOD!>[0]<!>)++
return "OK"
}