Closed dsvoronin closed 8 years ago
overloaded operator JsonElement.get not working!!
operator public fun JsonElement.get(key: String): JsonElement = obj.get(key) ?: throw NoSuchElementException()
obj is JsonObject that extends JsonElement obj["nothing”] //calls java method and not an overloaded operator. It worked fine with M14.
is there any way to override operator with same signature?
overloaded operator JsonElement.get not working!!
operator public fun JsonElement.get(key: String): JsonElement = obj.get(key) ?: throw NoSuchElementException()
obj is JsonObject that extends JsonElement obj["nothing”] //calls java method and not an overloaded operator. It worked fine with M14.
is there any way to override operator with same signature?