Create from Usage: Add operator modifier to indexing get/set functions
#KT-10185 Fixed
This commit is contained in:
+1
-1
@@ -3,6 +3,6 @@ fun x (y: Any) {
|
||||
val z: Any = y[""]
|
||||
}
|
||||
|
||||
fun Any.get(s: String): Any {
|
||||
operator fun Any.get(s: String): Any {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user