[FE 1.0] Don't miss NO_SET_METHOD checks
^KT-28109 Fixed
This commit is contained in:
committed by
teamcity
parent
3aabc8d666
commit
8c1fcddea3
@@ -0,0 +1,11 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
class Cell {
|
||||
operator fun get(s: Int) = 1
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val c = Cell()
|
||||
(<!UNRESOLVED_REFERENCE!>c[0]<!>)++
|
||||
return "OK"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package
|
||||
|
||||
public fun box(): kotlin.String
|
||||
|
||||
public final class Cell {
|
||||
public constructor Cell()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final operator fun get(/*0*/ s: kotlin.Int): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user