Handle type arguments in IrType.eraseTypeParameters

This commit is contained in:
Georgy Bronnikov
2020-01-31 14:44:43 +03:00
parent 22068dd6ad
commit c9df17f2f1
6 changed files with 69 additions and 1 deletions
@@ -0,0 +1,14 @@
package test
class EmptyMap<V> : Map<String, V> {
override fun isEmpty() = true
override val size: Int get() = 0
override fun containsKey(key: String) = false
override fun containsValue(value: V) = false
override fun get(key: String): V? = null
operator fun set(key: String, value: V): V? = null
override val keys : MutableSet<String> = mutableSetOf()
override val values: MutableCollection<V> = mutableSetOf()
override val entries : MutableSet<MutableMap.MutableEntry<String, V>> = mutableSetOf()
}