karelpeeters
03/06/2018, 1:51 PMclass Test<K, V>(map: MutableMap<K, V>): MutableMap<K, V> by map
val test = Test(mutableMapOf(1 to "hello"))
test[1] += " there"
results in an exception at runtime:
Exception in thread "main" java.lang.IllegalAccessError: tried to access method kotlin.collections.MapsKt__MapsKt.set(Ljava/util/Map;Ljava/lang/Object;Ljava/lang/Object;)V from class BugKt
at BugKt.main(Bug.kt:6)