Join Slack
Powered by
seems like you would be able to already do that wi...
# language-proposals
t
trevjones
06/26/2017, 5:55 PM
seems like you would be able to already do that with covariant return types and sub typing the Map or MutableMap.
Copy code
interface ThrowingMap<K, out V>: Map<K, V> { override fun get(key: K): V }
Open in Slack
Previous
Next